htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to get Subdomain name separately?
PostPosted: 18 Aug 2008 10:12 
Offline

Joined: 18 Aug 2008 09:57
Posts: 1
Hi to all,

I am sarah. New to this forum & also to .htaccess rules too. I am currently in a development of php website using drupal and it requires a subdomain feature. Please help me how to solve the below issue using the Rewrite rules

My Requirement is:

Consider this url : http://abc.mydomain.com/index.php?q=home . Using the .htaccess rules i need to redirect the request as : http://abc.mydomain.com/index.php?q=community/abc/home

Here the string "community" is an static text and the subdomain name "abc" is required to insert in the middle of the two strings (like community/abc/home). Here "q" is an querystring value.

Is it possible to write a rule like this? Or please give me any suggestions how to resolve this issue.

Thanks in advance..
Sarah


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB