i have a website blog for multiple user. I had a Domain & With this domain my customer Opening their Blog.
For Example : http://www.username.example.com
each user has unique address. need to redirect to particular user directive example
For Example : http://www.username.example.com/username
i have encounter one problem
---------------- MY htaccess Code ---------------------
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.([^\.]+).sp.com$ [NC]
RewriteRule (^/([^\.]+).do$) http://%{HTTP_HOST}/%1/$1 [R,L]
i gave input is
http://www.req1.sp.com/services/home.do
my expected result is
http://www.req1.sp.com/req1/services/home.do
but it results---The page isn't redirecting properly in Mozilla
http://www.req1.sp.com/req1//req1//req1 ... es/home.do
how this thing will happen
im using apache 2.0
please help me find out solution