I don't know how much help this will be but.....

I use the following:

RewriteRule ^exec.php$ http://www.clug.ca/node/4 [R=301,L]

to permanently redirect a page to a given location.  The R= part indicates 
what response you want to give (301 is a permanent move), and L indicates not 
to apply any other rewrite rules (I think).

The ^ and $ characters means the following:

        ^ - the pattern appears at the start of the matched seection
        $ - the pattern appears at the end of the string.

So, the way it's used above means to match any text that starts with exec.php 
AND is at the end of the url.

But don't take my word for this - I'm not 100% sure on these meanings without 
going off to look them up (this is all from memory right now).

On the otherhand, you might be able to use an Alias here (depending on the 
results you're after), or even like Gustin suggested and do a PHP page with a 
php redirect, or JavaScript....

HTH

Shawn

On Tuesday 09 August 2005 16:26, Cameron wrote:
> This is a simple one but I am brainfarting so forgive the newbieness of it.
>
> I want traffic to start at http://www.webpage.com/destination
> And be re-directed to http://www.webpage.com/folder/destination.php
>
> I think I finally found the right spot in the httpd.conf file and entered:
> * RewriteRule /destination http://www.webpage.com/folder/destination.php
>
> I then did a 'restart httpd' but the result seemed to imply that I needed
> to use one of the switches.  Nothing looked appropriate to me.
>
> I then did a 'apachectl start' and enter in my passphrase.  No errors at
> this point but when I try to view that site, it says Redirect limit for
> this url exceeded.  Unable to load requested page.  This may be caused by
> cookies that are blocked.
>
> My questions are:
> 1) Did I actually do the right thing i the first place?
> 2) Did I miss anything? (Permissions, etc.)
> 3) Did I edit the wrong file? (httpd.conf) Or the wrong section?
> 4) Anything else you could add?
>
> By the way, this is apache (can't recall version) running on redhat 9 (I
> think)
>
> Thanks in advance
>
> Cameron
>
>
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to