Topic: RewriteRule problem
|

|
| Author |
|
6lmmark Newbie

Joined: 13 January 2012 Location: United Kingdom
Online Status: Offline Posts: 2
|
| Posted: 13 January 2012 at 11:12am | IP Logged
|
|
|
Hi Guys, I am new to this forum and HeliconApe and I am
trying to redirect some old indexed pages to new site
pages. I have it working for the more simpler pages but
for pages in the following format they are not working.
Can one of you see where I am being stupid please?
RewriteRule ^style02\.asp?page_id=46$
http://www.ampersandcatering.co.uk/venue-
z/2/c/11/v/221/n/One-Birdcage-Walk.htm
[NC,R=301,L]
Thanks,
Mark
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 16 January 2012 at 3:51am | IP Logged
|
|
|
Hello,
Try using rules like:
RewriteCond %{QUERY_STRING} ^page_id=46$ [NC]
RewriteRule ^style02\.asp$ http://www.ampersandcatering.co.uk/venue-z/2/c/11/v/221/n/One-Birdcage-Walk.htm? [NC,R=301,L]
Regards
Andrew
Edited by AndrushkaUS - 16 January 2012 at 3:52am
|
| Back to Top |
|
| |
6lmmark Newbie

Joined: 13 January 2012 Location: United Kingdom
Online Status: Offline Posts: 2
|
| Posted: 16 January 2012 at 10:09am | IP Logged
|
|
|
Hi Andrew, That's great thanks, it has worked fine but I
didn't want to add the query string to the new page do I
just remove the ? .
Thanks Again,
Mark
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -149
|
| Posted: 17 January 2012 at 2:52am | IP Logged
|
|
|
Exactly, Mark.
|
| 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
|