how to hide subfolders of the url through .htacess

4

Hello! how to change a url through htacess. wanted that url:

http://localhost/site/product/view/Mi00OTI/golbolaver

look like this:

http://localhost/site/view/Mi00OTI/golbolaver
    
asked by anonymous 02.04.2017 / 21:15

1 answer

2

A quick fix

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^site/view/Mi00OTI/golbolaver(|/)$ site/product/view/Mi00OTI/golbolaver

Read more at

  

link

    
19.05.2017 / 21:36