Instead of renaming, set up your local web server to handle requests to that domain and modify your local hosts file to associate the domain with ip 127.0.0.1.
Especially when debugging hard to find bugs you will want your enviroment to be as similar to the one of the live site.
(I can do it in a not very modern version of WAMP and therefor I assume you can do it with all similar web servers)
Related Posts:
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- How To Make Connection To WordPress Data Base In A Plugin?
- Renaming wp-content folder dynamically
- Fix 403 error on WordPress multisite network using subdomains
- Make WordPress upload directory outside wordpress root with custom url
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- No wp-config.php file on local install of wordpress – site still displays
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- integrating external php library into wordpress- the right way
- Force SSL using FORCE_SSL_ADMIN
- How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”
- Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?
- How do I display the main domain for my WordPress install?
- How to add API security keys into JS of wordpress securely
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- What is the difference in the WP memory limits?
- Set site title & tagline with wp.config or function.php
- Automatically generator a WordPress installation on my subdomain
- How to decrease the max file upload size without using php.ini or htaccess?
- How can I redefine WordPress wp-content directory programmatically?
- Site cannot access external connection
- Serve cookie free URLs in WordPress without using a CDN
- Local WordPress from Git repo, where to set document root?
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Resource 404 error on multisite subdirectory install
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- WordPress White Screen Error
- Difference between php memory limit and wp memory limit?
- Detecting charcater encoding for wp-config.php file
- Changing WP_MEMORY_LIMIT doesn’t affect actual memory limit
- Where to get information about array fields in $_REQUEST?
- WordPress URL Rewrite not working
- wp_remote_get returns an error for valid URL
- New Plugin Review
- Create custom blocks for bootstrap
- How to get the post_id from postmeta
- Help with adding pagination to custom wp_query
- AJAX in WordPress, sending coords data to MySQL and show after into map
- Display all categories including sub categories
- woocommerce – hide payment method in new order email
- Do my defines need to be unique?
- How to add clearfix class according to to the posts number?
- Multiple options not staying selected after saving
- Importing Geo data into wordpress database
- how to add three default images to wordpress?
- WP Post-Thumbnail
- Responsive Header for Phone
- Programmatic Login from 3rd Party site
- Loading the same WP_Query in two different wordpress .php templates
- Save Search System
- foreach loop still echoes array
- Help with Sub and Sub-Sub Navigation
- Hide menu items in WordPress
- WordPress installation permission errors
- Custom field values to taxonomy terms
- List posts that don’t have a specific tag?
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- Correct way to enqueue page specific CSS file
- Wrapping a Sidebar within
- Content filter won’t work
- How to retrive the text : No movie by this actor
- Is the 404 page automatically displayed if a loop returns nothing?
- update_post_meta only updating on last loop of foreach
- Link blogname and blogdescription to the Options Framework
- Why does the post_type_link hook everything twice?
- Get related product based on subcategory selected from category id with ID 142
- Customizer: How to change Header Image description
- Fetching Initials of the Commentator in the WordPress Website
- fetch woocommerce product with custom taxonomy
- PHP Helper Class to create shortcodes
- How can I Use 2 databases with one WordPress install
- How to set a featured image (thumbnail) with PHP?
- Output custom text field as unordered list
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Can not call .php files after switching to %postname%
- WP Container Displaying Only on First Page of Archive
- AWS Lightsail WordPress – connect to database on instance using mysqli
- Update Images after edit via php
- Using wpdb to connect to a different database is not working
- how to use 2 index.php file One for mobile and one for desktop
- ACF under category name in shop page [closed]
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- Using $this with an anonymous function in filters
- WordPress Recent Posts – Loop
- Dynamic_sidebar load in string makeup
- Post Meta statement?
- not able to access $_POST on backend profile update
- WordPress Single Post Pagination Numbered and Navigational
- Add disclaimer before certain posts and pages
- Use Custiomizer to setup meta theme color tag
- Using ‘array’ method in wp_nav_menu causes it to disappear
- Search box background on a different page template
- two body tags on all WP pages regardless of theme
- Load php function with AJAX on modal window
- Hide page title
- Edit Image/Image Details – Replace button missing
- Display biography post for today’s birthday person
- get user role. parameter id return type string [closed]