| Author |
|
twenty3sky Newbie

Joined: 09 February 2010
Online Status: Offline Posts: 2
|
| Posted: 09 February 2010 at 4:34am | IP Logged
|
|
|
Hi all,
I have gone through the forums and this has been addressed however the solutions do not seem to be working for me. I would like to take a URL with a querystring and redirect it to my newly rewritten URL (via ISAPI RW). I am looking to redirect:
index.cfm?page=career to jobs.htm which I have written as #RewriteBase / #RewriteCond %{QUERY_STRING}^page=(.)$ [NC] #RewriteRule ^page=career$ jobs.htm? [NC,R=301,L]
or index.cfm?page=resources&sub=sellers to selling-guide.htm
I have no problem rewriting the URL's just the redirect seems to be giving me issues.
These are pretty much straight redirects with no real pattern. Any help would be greatly appreciated.
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 09 February 2010 at 5:49am | IP Logged
|
|
|
Hello,
i don't see any problem, so i'll fix a little:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^page=career$ [NC]
RewriteRule ^index\.cfm$ jobs.htm? [NC,R=301,L]
RewriteCond %{QUERY_STRING} ^page=resources&sub=sellers$ [NC]
RewriteRule ^index\.cfm$ jobs.htm? [NC,R=301,L] |
|
|
Please, try using these two.
|
| Back to Top |
|
| |
twenty3sky Newbie

Joined: 09 February 2010
Online Status: Offline Posts: 2
|
| Posted: 09 February 2010 at 12:35pm | IP Logged
|
|
|
Thanks Andru, After some noodling I got it to work. Seems I had RewriteBase / after a RewriteRule
Cheers!
|
| 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
|