Home › Forums › CSS › .htacess problem….. I think › Re: .htacess problem….. I think
DirectoryIndex index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html
RewriteEngine on
# Change yourdomain.com to be your primary domain.
RewriteCond %{HTTP_HOST} ^(www.)?compararelmercado.com$
# Change ‘subfolder’ to be the folder you will use for your primary domain.
RewriteCond %{REQUEST_URI} !^/compararelmercado/
# Don’t change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change ‘subfolder’ to be the folder you will use for your primary domain.
RewriteRule ^(.*)/?$ /compararelmercado/$1
# Change yourdomain.com to be your primary domain again.
# Change ‘subfolder’ to be the folder you will use for your primary domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?compararelmercado.com$
RewriteRule ^(/)?$ compararelmercado/ [L]