On the staging server, in your wp-config.php
define( 'WP_SITEURL', 'http://SERVER_IP/projectname' );
define( 'WP_HOME', WP_SITEURL );
Then:
- Place an empty
.htaccess
in/projectname
- Load
http://SERVER_IP/projectname/wp-admin/options-permalink.php
- Check
.htaccess
– have rewrite rules been added?
Related Posts:
- Passing variables through permalink structure
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to map permalinks with accented letters to sanitized slugs?
- Only default permalink is working mod_rewrite enabled
- mod-rewrite exception? keep #hash in matching urls?
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Test site pages go to main site
- mod-rewrite rules grabs “broken permalinks”, too
- Pretty permalinks (again)
- customize urls displayed by previous_post_link and next_post_link
- .htaccess not working in WordPress
- Is it possible to get a page link from its slug?
- remove “index.php” from permalinks
- Change author permalink
- How can I reverse engineer a Permalink to Find the Page?
- How to remove dates from existing permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Does WordPress Change the .htaccess File When Updating?
- How can I store page ID in a post instead of other selected permalink?
- Page begins with number, WordPress adds 2
- Move WordPress to subdirectory, keep ALL URLs
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Removing hierarchical pages in the permalink
- 301 Redirects for Changed Permalink Structure & Category Base
- Permalinks to Custom does not work (out of box)
- Can WordPress realistically handle a site with 500 ‘pages’?
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- “.#[random-char-string]” being inserted at end of URLs
- mod_rewrite enabled but Permalinks show index.php
- Subdomains to pages
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Broken wordpress permalinks on pages only
- How to get a page url by a page id?
- How to Remove Slug From Database?
- Remove subfolders from URL
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- htaccess or redirect to cloak portion of a link?
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- Using only %postname%
- Relative or Absolute Paths for Flash Video Player Files
- Should I use relative or absolute urls when pointing to internal pages
- removed index.php now all pages 404
- Rewriting search permalink
- How to change the permalink structure of a master page?
- removing index.php IIS 7.5 webconfig
- Rewrite rule never matching
- wordpress permalinks tweeks
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- Why I can’t change the permalink of this page?
- Redirect user if it’s not logged in
- Custom url for a single page
- Using WP rather than .htaccess to redirect pages/posts
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- What happens when permalink settings are updated?
- WordPress redirection problem after moving to a new server?
- Change of permalink structure – redirects in htaccess breaks the archive links
- After moving from subdirectory to home, home page does not display
- Specific URL Rewriting with parameters in wordpress
- WP Site in subdirectory Joomla! Site – Permalinks not working
- Rewrite my default post URL
- How can I make my .htaccess file writeable by wp-admin?
- Page Attachment Permalink Structure based on Menu Order?
- add new permalink structure from dynamic page
- 404 with post name permalinks
- Get closest page ID from URL
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- .htaccess file missing from WordPress install directory
- Why does chrome keep downloading a file instead of running the site?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Permalinks: Page Not Found
- How to protect htaccess so it can’t be overwritten?
- Permalinks not working
- Changes to .htaccess not updating the file (old rules still take effect)
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- AWS WordPress Install – pages/posts 404 on restart until updating permalinks
- WordPress 404 in development area
- Permalinks for pages
- Need Help Correct Regular Expression Redirect Code
- WordPress Permalinks still not working despite all necessary settings
- Permalinks by page/post name returning 404
- Permalinks settings page blank
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Custom Permalink
- Server Move: All pages leading home
- Change in permalink structure made javascript cookie not work correctly
- Permalinks not working with Vagrant
- Pages not using permalink
- How to get post object on blog template
- How to redirect to correct pages after permalink structure change
- How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- Only plain permalinks working
- Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?
- Add prefix to page URL based on the page template