Mod_rewrite or redirect?
-
Hi there
I have a fairly standard WP permalink setup with this in my .htaccess file:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
However, I need to change the name of a page, and I’d like to setup a rewrite/redirect from the old page to the new. In other words, this URL:
https://example.com/old-page/?story=978
should forward/rewrite to this:
https://example.com/new-page/?story=978
Eventually the rewrite won’t be required, I just need to be sure that any links to the old page remain in place.
Any suggestions greatly appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Mod_rewrite or redirect?’ is closed to new replies.