This is really annoying, I'm sure it's something stupid I've done. If anyone can spot anything I've missed, or just plain overlooked then it would be appreciated. Thanks;
I've just done this site and thought I'd try using the forcetype method to generate more SEF URL's. I wish I hadn't now.
http://durban.directrouter.com/~espresso/
I want it to work when I go to http://durban.directrouter.com/~espressso/ethics/
It should, but doesn't
My htaccess file;
Code:
<files index>
RewriteEngine on
RewriteBase /
# remove .php and THE_REQUEST to prevent loops
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP
RewriteRule (.*)\.php$ $1 [R=301]
# remove trailling slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /$
RewriteRule (.*)/ $1 [R=301]
# add .php to access file, but don't redirect
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php
</files>
Ideally, I would like the url to be displayed as ;
http://durban.directrouter.com/~espresso/ (no index.php displayed)
I can't get this to work though. Does anyone know if there is a way to get the .htaccess file to redirect to here without adding the index.php to the URL?
Thanks in advance
|