[thelist] more htaccess problems :(

Bojan Tesanovic btesanovic at gmail.com
Thu Aug 9 01:58:25 CDT 2007


Maybe you shodul put
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

I am not guru in RW things, but I use above options so it will take folder or 
file if it exist on server ...

Jon Hughes wrote:
> "Options +FollowSymLinks 
> 
> RewriteEngine on 
> 
> RewriteBase /
> 
>  
> 
> RewriteCond %{HTTP_HOST} ^phazm.com [NC] 
> 
> RewriteRule ^(.*)$ http://www.phazm.com/$1 [L,R=301] 
> 
>  
> 
> Options -Indexes
> 
> DirectoryIndex index.htm index.html Index.htm Index.html index.php
> 
>  
> 
> RewriteRule ^notes/$ /notes/index.php
> 
> RewriteRule ^/notes$ /notes/index.php
> 
> RewriteRule ^notes$ /notes/index.php
> 
>  
> 
> RewriteRule ^([^\.\?]+)(\?.*)?$ $1.php
> 
>  
> 
> ErrorDocument 404 /404.php"
> 
>  
> 
> This works for phazm.com/notes/, which pulls /notes/index.php, but when I go
> further, such as:
> 
>  
> 
> http://www.phazm.com/notes/wp-admin/
> 
>  
> 
> which should pull from /wp-admin/index.php but isn't.
> 
>  
> 
> I thought with the "directoryindex" it should fix that, but no such luck.
> 
>  
> 
> Any way I can force "folder/" to pull from "folder/index.php"
> 
>  
> 
> -          Jon
> 


-- 
Bojan Tesanovic
http://www.classicio.com/
http://www.real-estates-sale.com/



More information about the thelist mailing list