[thelist] need a bit of htaccess help

Elin Tjerngren elin at artopod.se
Wed Aug 8 13:43:18 CDT 2007


Try this:

RewriteEngine On
RewriteBase /

RewriteRule ^notes/?$ notes/index.php [R]

I'm not sure what the ast line in your .htaccess was for - but if you 
only want to redirect to index.php in /notes/ I think this will do the 
trick. The ? means it either has or hasn't the previous character - the 
trailing slash.

/Elin

Jon Hughes wrote:
> I have the following:
>
> Options +FollowSymLinks 
> RewriteEngine on 
>
> DirectoryIndex index.htm index.html Index.htm Index.html index.php
>
> RewriteRule ^notes/$ /notes/index.php
> RewriteRule ^/notes$ /notes/index.php
>
> RewriteRule ^([^\.\?]+)(\?.*)?$ $1.php
>
> (EOF)
>
> This works for "http://www.phazm.com/notes/" but does NOT work for
> "http://www.phazm.com/notes" (no trailing slash)
>
> Does anyone know what I must modify to make that work?
>
> Thank you,
>
>  - Jon
>
>   




More information about the thelist mailing list