Cached old ISAPI url

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 16
Joined: 10 Jan 2013, 12:24

Cached old ISAPI url

04 Mar 2015, 15:12

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

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Cached old ISAPI url

06 Mar 2015, 02:33

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]

User avatar
Posts: 16
Joined: 10 Jan 2013, 12:24

Re: Cached old ISAPI url

09 Mar 2015, 08:27

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/

User avatar
Posts: 16
Joined: 10 Jan 2013, 12:24

Re: Cached old ISAPI url

09 Mar 2015, 10:21

Ignore me please Anton - perfect as usual. Thanks for your help :-)

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 15 guests