I need help with my custom htaccess redirection. Those are my htaccess rules:
# AddHandler application/x-httpd-php .php .htm
RewriteEngine on
# 301 redirect to domain without 'www.'
RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !/www\.mydomain\.com/public/www/
RewriteRule ^(.*)$ /public/www/$1 [L]
RewriteCond %{HTTP_HOST} ^(www\.)?cms\.mydomain\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !/cms\.mydomain\.com/public/core/
RewriteCond %{REQUEST_FILENAME} !/cms\.mydomain\.com/tmp/
RewriteRule ^(.*)$ /public/core/$1 [L]
So everything from main directory is redirected to public/... Is it possible to not redirect one directory in main directory?
For example:
http://mydomain.com/something will redirect me to public/www/something but I want it point to root_folder/something