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)
Message |

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

I am trying to achieve this to

i can
user=xx1 to

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

Back to Top
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]

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