file . Htaccess

Asked

Viewed 35 times

0

I am using the following configuration in the Htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?dominio.com.br$
RewriteCond %{REQUEST_URI} !^/pasta-destino/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /pasta-destino/$1
RewriteCond %{HTTP_HOST} ^(www.)?dominio.com.br$
RewriteRule ^(/)?$ pasta-destino/index.php

i need the site url to look like this: www.dominio.com.br/xs/index.php, however, this making the redirect, but the page index.php, is totally out of the folder causing it to be totally broken, so that it doesn’t have to appear in the url www.dominio.com.br/Xs/index.php, it is possible to do this?

  • Wouldn’t it be simpler to make one header("location ./xs/index.php") no www.dominio.com.br/index.php

  • It can be, I didn’t think about it. .

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.