Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Trying to write a simple URL redirect... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Smudge2
Newbie
Newbie


Joined: 27 August 2008
Online Status: Offline
Posts: 2
Posted: 27 August 2008 at 7:50pm | IP Logged Quote Smudge2

Sorry to bother you guys with this, but I'm stumped. After reading the manual on the RewriteRule command and searching this site, my attempts to perform a simple URL redirect simply aren't working.

What I want to do is have the URL:

http://www.mysite.com/farmgirls

automatically redirect to:

http://www.mysite.com/maryjanesfarm/farmgirls.html

This is what my httpd.ini file looks like:

================

[ISAPI_Rewrite]

RewriteRule ^/farmgirls$ /maryjanesfarm/farmgirls.html

================

(without the equals signs, obviously ). And I've placed it in my wwwroot directory. Unfortunately, this won't work. I've also tried the following without success:

#RewriteRule ^/farmgirls$ http\://www.mysite.com/index.html [I]
#RewriteRule /farmgirls http\://www.mysite.com/maryjanesfarm/farmgirls.html [I,RP]

Any advice would be greatly appreciated.

Thank you for your time,

Chuck

Back to Top View Smudge2's Profile Search for other posts by Smudge2
 
Smudge2
Newbie
Newbie


Joined: 27 August 2008
Online Status: Offline
Posts: 2
Posted: 27 August 2008 at 8:38pm | IP Logged Quote Smudge2

Well, just got an e-mail from my ISP. Turns out it was the file read permissions that was the culprit, not my code. Gotta love dealing with those server problems that I have no control over.  

Thanks,

Chuck

Back to Top View Smudge2's Profile Search for other posts by Smudge2
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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 cannot vote in polls in this forum