Cached old ISAPI url
4 posts
• Page 1 of 1
Cached old ISAPI url
Hi, we recently updated our map file but having problems with cached old ISAPI urls:
Old: /summer-holidays/europe/spain/
New: /summer-holidays/europe/spain-es/
Is there a way to redirect any SEO traffic from the old to new URL?
many thanks
Old: /summer-holidays/europe/spain/
New: /summer-holidays/europe/spain-es/
Is there a way to redirect any SEO traffic from the old to new URL?
many thanks
Re: Cached old ISAPI url
Hello,
Sure, you can make another map with old URLs in the left column and new ones in the right:
cachedurls.txt
summer-holidays/europe/spain/ summer-holidays/europe/spain-es/
...
And have a redirect rule like this:
RewriteBase /
RewriteMap cachedurls txt:cachedurls.txt
RewriteCond ${cachedurls:$1|NOT_FOUND} !NOT_FOUND
RewriteRule ^(.*)$ /${cachedurls:$1} [NC,R=301,L]
Sure, you can make another map with old URLs in the left column and new ones in the right:
cachedurls.txt
summer-holidays/europe/spain/ summer-holidays/europe/spain-es/
...
And have a redirect rule like this:
RewriteBase /
RewriteMap cachedurls txt:cachedurls.txt
RewriteCond ${cachedurls:$1|NOT_FOUND} !NOT_FOUND
RewriteRule ^(.*)$ /${cachedurls:$1} [NC,R=301,L]
Re: Cached old ISAPI url
Thanks Anton,
I've created the chacedurl.txt file, whuich accoring to the log has loaded successfully. However the redirect is not working.
Should the 1st list (old URL) not have a leading '/', when then 2nd list (new URL) should?
EXAMPLE:
summer-holidays/europe/spain/ (SPACE) /summer-holidays/europe/spain-es/
I've created the chacedurl.txt file, whuich accoring to the log has loaded successfully. However the redirect is not working.
Should the 1st list (old URL) not have a leading '/', when then 2nd list (new URL) should?
EXAMPLE:
summer-holidays/europe/spain/ (SPACE) /summer-holidays/europe/spain-es/
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests