This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: RewriteRule problem
Author
Message |
6lmmark
Newbie


Joined: 13 January 2012
Location: United Kingdom
Posts: 2
Posted: 13 January 2012 at 11:12am

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: -160
Posted: 16 January 2012 at 3:51am

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
Posts: 2
Posted: 16 January 2012 at 10:09am

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: -160
Posted: 17 January 2012 at 2:52am

Exactly, Mark.
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version