Htaccess

Htaccess

Subjects

Latest Asked Question

A : hi friend use these line of code; RewriteCond %{HTTP_HOST} ^2\.2\.2\.2 RewriteRule (.*) http://example.com/$1 [R=301,L] Replace 2\.2\.2\.2 with your IPV4 ipaddress Replace http://example.com with your domain where you want to redirect; thanks
45 Likes
A : Hi,  replace your .htaccess with this, this will works for you Tested. <IfModule mod_rewrite.c><p /> <xmp>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule>
45 Likes
Htaccess Related Topic's