Welcome Guest, Not a member yet? Register   Sign In
Giving users subdomains
#1

[eluser]Nial[/eluser]
I'd like to offer users who sign up to a website I'm developing a custom subdomain: username.domain.com. I'd like this address to point to basically return the contents of domain.com/view/username, so I figured htaccess was the way to go! Via cpanel I've configured *.domain.com to point to domain.com, and us the following .htaccess:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.phps)
RewriteRule ^(.*)$ /index.php/$1 [L]

Is there a simple way to redirect these subdomain requests to convert user.domain.com -> domain.com/view/user via .htaccess while maintaining the above rule?


Messages In This Thread
Giving users subdomains - by El Forum - 05-29-2008, 12:41 PM
Giving users subdomains - by El Forum - 05-29-2008, 01:01 PM
Giving users subdomains - by El Forum - 05-29-2008, 01:16 PM
Giving users subdomains - by El Forum - 05-29-2008, 01:20 PM
Giving users subdomains - by El Forum - 05-29-2008, 01:32 PM
Giving users subdomains - by El Forum - 05-29-2008, 02:02 PM
Giving users subdomains - by El Forum - 05-29-2008, 02:16 PM
Giving users subdomains - by El Forum - 05-29-2008, 02:27 PM
Giving users subdomains - by El Forum - 05-29-2008, 02:40 PM
Giving users subdomains - by El Forum - 05-29-2008, 04:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB