Jump to content

sneh_nsk

Members
  • Posts

    1
  • Joined

  • Last visited

sneh_nsk's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. (please, note domain1 & sub1 are given as an example) I've created subdomain named "sub1" in domain "domain1" i want that whenever i access "http://sub1.domain1/index.php",'>http://sub1.domain1/index.php", it should render "http://domain1/index.php?subdomain=sub1" but, in browser, the 1st link i.e. "http://sub1.domain1/index.php" should be displayed.. i've tried following code in .htaccess file for index.php file::: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^domain1$ [OR] RewriteCond %{HTTP_HOST} ^www.domain1$ [OR] RewriteCond %{HTTP_HOST} ^sub1.domain1$ RewriteRule ^(.*) http://domain1/index.php?subdomain=$1 [L,QSA,R] it works sometimes...n thn not.. what should i do..?
×
×
  • Create New...