Topic: Redirect Map for 2000+ urls?
|

|
| Author |
|
jnunez Newbie

Joined: 23 July 2010 Location: United States
Online Status: Offline Posts: 3
|
| Posted: 23 July 2010 at 11:04am | IP Logged
|
|
|
I have 2000+ urls that I need to redirect and these will continue to come in
as they are found. Tried to use RedirectMap but it just redirects to the home
page.
Here is the rule I was using...
RewriteRule ^(.*\.html) ${oldurlmap:$1}
the map file has the following:
/waves+&+craves.html /products/waves-and-craves
|
| Back to Top |
|
| |
AndrushkaUS Senior Member

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 1545
|
| Posted: 26 July 2010 at 5:28am | IP Logged
|
|
|
Hello.
I'm sorry but I do not see the question or an issue.
The rule looks fair, though there're no flags used. Try to add [NC,R=301,L]
Regards
Andrew
__________________ The will to conquer is the first condition of VICTORY
|
| Back to Top |
|
| |
jnunez Newbie

Joined: 23 July 2010 Location: United States
Online Status: Offline Posts: 3
|
| Posted: 27 July 2010 at 2:48pm | IP Logged
|
|
|
Hi AndrushkaUS,
I added the flag and here is what I get...
http://domain.com/%24%7boldurlmap:%24%7boldurlmap:%24%7boldurlm
ap:%24%7boldurl...
Just a constant redirect.
Here is the current state of the rules:
RewriteMap oldurlmap txt:oldurl_redirect.map
RewriteRule ^(.*) ${oldurlmap:$1} [NC,R=301,L]
Tried to log and nothing is ever recorded.
|
| Back to Top |
|
| |
AndrushkaUS Senior Member

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 1545
|
| Posted: 28 July 2010 at 10:18am | IP Logged
|
|
|
Hi,
It's something random. It seems the loop has occurred, so that mapfile wasn't recognized.
Please, provide information on build, you operating system and log file.
Regards
Andrew
__________________ The will to conquer is the first condition of VICTORY
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum
|