Redirecting complex URLs
I’m moving a website from a host with a proprietory cms system to a new webhost using wordpress. The domain name remains the same. The content is the same as the old site but, naturally, all the new page urls are different in wordpress.
The old site was a mix of simple (pagename.php) and complex (page_title.php?name=Our+Service&id=1) URLs [don’t ask why – long story!]
I have set up search friendly urls in WP using permalinks and page url editing and I have used 301 redirects in .htaccess to redirect the simple url pages from the old site to their WP equivalents. All works great, no problems at all.
The problem I have is in redirecting the old complex urls to the new WP equivalent pages.
As an example I want to permanently redirect:
Using 301 redirects in the format for simple urls just doesn’t work for these complex ones.
I’ve read up extensively on mod_rewrite but can find no examples of my particular requirement.
Any help would be gratefully appreciated
- The topic ‘Redirecting complex URLs’ is closed to new replies.