httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <>
Subject [users@httpd] .htaccess redirect issue
Date Thu, 27 May 2010 06:46:50 GMT
Hello list,

I am trying to achieve a very particular .htaccess redirect arrangement.
I have made it worked but halfway :-(

I have written a redirect rule as

RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$\?


So should redirect to\?

But with the above rule the link redirects to\?

So without the *domain* in between.

Could any one suggest to

[1] how can I fixed this so the *domain* appears like\?

[2] Can there be any arrangement so that I can use bulk redirection ?
Say putting a variable in place of , so that those
two rules can effectively redirect all subdomains pointed to that server
? I don't know if it really possible. Any sugestion/clue please ?


জয়দীপ বক্সী

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message