At the moment I'm rewriting subdomain to script as parameter:
- Code: Select all
USER.domain.pl to domain.pl/script.php?id=USER
(with or w/o WWW) in such way:
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.domain\.pl$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.domain\.pl$ [NC]
RewriteRule ^$ /script.php?id=%2 [QSA,L]
QUESTION:
My users are used to subdomain addresses but due to AJAX issues with subdomains I want to change this rule to redirect like that:
- Code: Select all
USER.domain.pl to domain.pl/folder/USER
(with or w/o WWW) and have page address in address bar without subdomain - only this way:
- Code: Select all
http://domain.pl/folder/USER
(with or w/o WWW)
Thanks a lot!