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)?



6 Years
Discussion Span
Last Post by The5sisters

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.