I am trying to implement dinamics subdomains for cities, but this does not work when the subdomain is used. My htaccess:
Options +FollowSymlinks <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^www.bisnet.com.co [NC] RewriteRule ^(.*)$ http://bisnet.com.co/$1 [R=301,L] </IfModule> <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^www.bisnetcolombia.com [NC] RewriteRule ^(.*)$ http://bisnet.com.co/$1 [R=301,L] </IfModule> <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^www.bisnet.co [NC] RewriteRule ^(.*)$ http://bisnet.com.co/$1 [R=301,L] </IfModule> <IfModule mod_rewrite.c> # Activar RewriteEngine RewriteEngine on RewriteBase /
In http://htaccess.madewithlove.be/ the test looks fine, but I get an error on my server: ERR_NAME_NOT_RESOLVED
Test URL:
http://bucaramanga.bisnet.com.co/ http://bucaramanga.bisnet.com.co/letra/a http://bucaramanga.bisnet.com.co/166-restaurantes http://bucaramanga.bisnet.com.co/166-restaurantes/355-la_casona_del_chingo
Thanks for the help.
source share