Jump to content

bull

New Members
  • Posts

    2
  • Joined

  • Last visited

bull's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the condition wasnt met and i didnt know how to update it so that it would redirect both with and without www. at the start of the address. after a few unlucky attempts i finally found a solution which was RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
  2. Hi all, i' ve got two domains on a single shared hosting so trying to get to separate websites to work on it with help of htaccess. So far I have managed to get it to work that http://example.com and http://example2.com both redirects fine, but noticed if i start the url with http://www.. it doesnt work. Just started to mess about with htaccess business so cant get my head around it at all, if anyone could help out. Thank you! contents of the htaccess file: RewriteEngine on Options +FollowSymLinks RewriteBase / # Site 1 RewriteCond %{HTTP_HOST} ^test247.info$ [NC] RewriteCond %{REQUEST_URI} !^/_test247_info/.*$ RewriteRule ^(.*)$ /_test247_info/$1 [L] # Site 2 RewriteCond %{HTTP_HOST} ^test247.com$ [NC] RewriteCond %{REQUEST_URI} !^/_test247_com/.*$ RewriteRule ^(.*)$ /_test247_com/$1 [L]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.