htaccess help and base url php [closed]

1

I'm trying to make url friendly with the baseurl class and also with htaccess, but some pages like services and portfolio, are bugged, when I click to see the code appears in the path of the files a part of the page name, as examples

locahost / admin / port ../ assets ........

locahost / admin / s / assets ........

RewriteEngine On
DirectoryIndex index.php
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewiteRule ^(.*)$ index.php?page=$1

Could you help me?

    
asked by anonymous 11.10.2015 / 21:15

1 answer

0

Please try this:

Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?page=$1 [QSA,L]

I had a very similar problem and after a long time of searching and with the help of some documents regarding the ache I got to the above code.

    
17.10.2015 / 20:14