Quantcast
Channel: htaccess redirect to public directory if not subdomain - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


htaccess 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

Browsing latest articles
Browse All 2 View Live