How to use a rewrite rule to force calls for “domain.tld/subdir/file.html” to show as “subdir.domain.tld/file.html”?

HTTP_HOST does only contain the HTTP Host value. So try this: RewriteCond %{HTTP_HOST} ^domain\. Tld$ RewriteRule ^(0-9+)/(a-z-+)\.

Html$ http://$1.domain. Tld/$2. Html NC,L,R=301.

Ignacio: Like I said. I'm new to mod_rewrite...tickle it once in a while to keep my articles straight, that's about it. I'm no dev, either, but I'll always give something a try first.

Looks like I need to read up more on rewrite conditions. :) @Gumbo: Thanks for the quick reply. I gave it shot.No change.

Something like http://domain. Tld/yyyy still shows if I use it. At least from your example I understand the construction a bit better.

Thanks for that much. Update: I stand corrected. There must have been a delay or maybe my browser was cacheing the URLs from earlier browsing, but it appears your rules are working great.

Thanks very much. Happy New Year to you!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions