301 Redirects From an Old Site to a New Site
2 posts
• Page 1 of 1
301 Redirects From an Old Site to a New Site
I'm in the process of rewriting one of our sites and will need to create 301 redirects for all the pages, because the URL structure is completely different.
The old site uses query string parameters, where as the new site uses SEO friendly urls thanks to Ape. I have the code working to redirect the individual URLS, but since there are over 2,000 of them, it brings the server to its knees when I add the rules to the htaccess file.
So far, this is the only way I've been able to get the URL redirection to work:
Is there a more effective way to redirect these links than what I'm using here?
Thanks!
The old site uses query string parameters, where as the new site uses SEO friendly urls thanks to Ape. I have the code working to redirect the individual URLS, but since there are over 2,000 of them, it brings the server to its knees when I add the rules to the htaccess file.
So far, this is the only way I've been able to get the URL redirection to work:
- Code: Select all
RewriteCond %{QUERY_STRING} ^Screen=PROD&Product_Code=FW321$ [NC]
RewriteRule ^Merchant2/merchant.mvc$ /ferret-fur-coat/upc/766501003215? [NC,L,R=301]
RewriteCond %{QUERY_STRING} ^Screen=PROD&Product_Code=FC013$ [NC]
RewriteRule ^Merchant2/merchant.mvc$ /deluxe-ferret-townhouse/upc/766501000139? [NC,L,R=301]
Is there a more effective way to redirect these links than what I'm using here?
Thanks!
Re: 301 Redirects From an Old Site to a New Site
I got this working the way I wanted using multiple map files.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests