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
- How rename wp-content and wp-admin folders correctly
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- Apply class to every third list item? [duplicate]
- Only show image from custom field when present
- Cinema site, retrive the movies that actor play in
- How to include custom code on a page that’s set to act as homepage?
- retain querystring values when savincustom options in admin
- PHP if statement works in template files, but not header
- How Can I Edit the Registration Code?
- Error while setting role
- Editing a PHP file to include a small text piece on every page
- Get categories names as an array to use it in theme settings
- Should i use the wordpress Options table or to create database table..?
- variable value disappears in a second loop
- Force Users To Relogin
- unknown issue in ‘header.php’ preventing theme from displaying fully
- Hide a div to subscribers(user role) in one page (is_page)
- Security updates to 3.3.2
- Where is this function’s callback getting its arguments from?
- How can I use a sliced image As banner? [closed]
- persist a variable set in header.php all the way down to footer.php
- Echo title attribute php
- Can a page contain php code?
- Last class on last headline?
- Unable to Find Space in Custom Function
- Is it possible to display a DIV to not logged in users and then change it for users who are logged in?
- Strip Paragraph Tag
- Unable to process php via shortcode
- working with term_relationships table
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- Creating a mobile site by adding a new class to the body tag from functions.php
- WordPress plug-in for dynamic download link?
- Using WP functions such as the_title() in an included php file
- GET problem in WordPress
- WordPress gallery shortag
- Almost Done… Post Format Code
- wordpress admin plugin menu custom css
- Help with page nav?
- Show recent posts starting at a specific number archive
- Add title=”” to A PHP Code
- Get Page ID from Backend
- Help with WordPress function inside a shortcode
- Wpdb->insert() doesn’t insert new row after the last one
- WordPress plugin admin page – using WordPress function in linked php file
- HTML table attributes ignored
- What’s the best way to include PHP code in pages?
- Is there any wordpress plugin to upload images and captions to multiple pages once
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- PHP in Edit Post link
- Removing the first 8-10 letters from a post?
- How to add drag and drop functionalities to a div inside option panel
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Timthumb.php image gallery not working on Multisite WordPress
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How do you create two separate Register pages?
- $_GET[‘updated’] does not work in WordPress 3.1?
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to send form data from WordPress (Meta Box) to an OData service?
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- Removing WordPress Footer -without access to PHP code?
- dynamic page using php from sql database
- Upload non-featured image to image field
- Usage of call back function of add_meta_box()
- Building a REST API for your web app exposes primary keys of DB records?
- WordPress get_media_embedded
- Change product_base programmatically
- wp_delete_comment takes two tries to delete – then deletes all comments
- php redirect with custom user roles set and working but redirect not working for when users are logged in
- how to get serialized post meta