301 redirect old site URLs
-
An old site has been redesigned using WordPress and I’d like to redirect old pages to their equivalent in WordPress.
The old site used a CMS which had pages in the format of index.php?page=2 which conflicts with WordPress’s own querystring structure. I’ve got around 20 URLs to redirect, all as index.php?page=x
I’ve tried using mod_rewrite as such:
RewriteCond %{QUERY_STRING} page=2 RewriteRule ^index\.php$ https://www.domain.co.uk/new/wordpress/page/ [R=301,L]
But of course WordPress treats it as it’s own URL and not a rewritten one. Any suggestions?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘301 redirect old site URLs’ is closed to new replies.