Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
General Questions
SilverStripe Forums » General Questions » An .htaccess question
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|
Page:
1
|
Go to End | |
| Author | Topic: An .htaccess question | 84 Views |
-
An .htaccess question

26 June 2009 at 12:06am
Hi,
This is some problem which I tried to solve, but was not able to do that.
Now what I need to do is that to give my website's registered users a custom sub domain, which is like if my website is mysite.com a member whose name is xx will be able to access the site after logging in by this URL xx.mysite.com
Any idea about how to make this?
Thanks
my .htaccess looks like this
### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.mysite\.com
RewriteRule ^(.*) http://www.mysite.com/%1 [R=301,L]RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
| 84 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: Hamish, jondbaker, Nickt
Welcome to our latest member: fearofbuttons

