Htaccess redirect hostname to FQDN?

In their raw form instead of turning them into %-escapes, losing their special meaning However mod_rewrite is a clumsy way of doing a simple redirect. If you can get access to the main/virtual host config you are better off using Redirect the tool that was designed for this job: VirtualHost *:*> ServerName host.domain.Com ... real host settings... ServerName host Redirect permanent / http://host.domain.com.

In their raw form instead of turning them into %-escapes, losing their special meaning. However mod_rewrite is a clumsy way of doing a simple redirect. If you can get access to the main/virtual host config you are better off using Redirect, the tool that was designed for this job: ServerName host.domain.

Com ... real host settings... ServerName host Redirect permanent / host.domain.com.

You could try a negative match on the FQDN -so that anything that does not host.domain. Com will be redirected to have that. Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} "!

^host.domain. Com" nc rewriterule ^(.*)$ host.domain.com/$1 r=301,nc.

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