cxs410
asked on
301 Redirect
I have a situation where a group of links changed because part of the link changed:
Old: http://www.domain.com/products/Cisco/Access-Servers/AS53x0-Series
New: http://www.domain.com/products/Cisco/Access-Servers/AS5300-Series
How can I make a 301 redirecto fix the links...
Old: http://www.domain.com/products/Cisco/Access-Servers/AS53x0-Series
New: http://www.domain.com/products/Cisco/Access-Servers/AS5300-Series
How can I make a 301 redirecto fix the links...
ASKER
That does not appear to work.. (I added it to the .htaccess
Try to add it to httpd.conf
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^products/Cisco/Access-Ser vers/AS53x 0-Series(. *)$ http://www.yourdomain.com/products/Cisco/Access-Servers/AS53x0-Series$1 [L,R=301]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^products/Cisco/Access-Ser
</IfModule>
muahh... today is not my day, correct code below
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^products/Cisco/Access-Servers/AS53x0-Series(.*)$ http://www.yourdomain.com/products/Cisco/Access-Servers/AS5300-Series$1 [L,R=301]
</IfModule>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try to add this in httpd.conf or .htaccess
RedirectMatch 301 /products/Cisco/Access-Ser
Hope this help,
Sompol