About an hour ago, I added
Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*[^/])/?$ RewriteCond %{DOCUMENT_ROOT}%1.php -f RewriteRule .+ %1.php [QSA,L]
into my .htaccess file. but it does not work. when I go to mywebsite.com/info or mywebsite.com/info/ it does not work (page - info.php). mod_rewrite enabled - checked by RewriteRule, which redirected me to google from any page on my site.
I have no idea what the problem is .. maybe the code is wrong?
Thanks.
source share