Answer by JarekBaran for htaccess redirect to public directory if not subdomain
Check this rules on the top of the .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1...
View Articlehtaccess redirect to public directory if not subdomain
I am using phalconPHP. In .htaccess file in the root directory I want to check two things. first, if there is no www in the beginning of the URL, it should be redirected to the www URL. second, if...
View Article
More Pages to Explore .....