This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: mod_rewrite subdomain with subdir (Topic Closed Topic Closed)
Author
Message |
pooyara
Newbie


Joined: 27 September 2007
Posts: 1
Posted: 27 September 2007 at 4:07am  

I am trying to achieve this
http://website.com/?action=xx2&user=xx1 to
http://
xx1.website.com/xx2

i can

http://website.com/?
user=xx1 to
http://xx1.website.com

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} !user=[^&]
RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.website\.com
RewriteRule (.*) /$1?user=%2 [L]

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 27 September 2007 at 7:34am  

RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} !user=[^&] [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.website\.com [NC]
RewriteRule (.*) /action=$1&user=%2 [NC,L]


__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum