Hi I have added the following code to my htaccess :

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]

the above rule just makes the url mor SEO friendly so for example home.php will become home, BUT when I have a url that is domain.home/ it gives me a 500 internal error, so i would have to clear browser history and then type in domain.home (without the /) how can I make the sever accept "/" (the backslah)?

Thanks

Andy

Did you append this code after "End Of WordPress" or just before that line , since it is basically another interpretation of a normal htaccess file ?
Have you tried using that code as a replacement for the original htaccess code ?
Does your htaccess file have an odd or even number of files ? The server prefers one or the other even when the 2 or 3 max extra lines are blank--an exception to white space conflicts.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.