P pardis Well-Known Member Jan 23, 2013 #1 Jan 23, 2013 #1 Hello : on my server Redirect Code not work , guide to troubleshooting please : Code: RewriteCond %{HTTP_HOST} ^grafjo\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.grafjo\.com$ RewriteRule ^/?$ "http\:\/\/www\.grafjo\.net\/" [R=301,L]
Hello : on my server Redirect Code not work , guide to troubleshooting please : Code: RewriteCond %{HTTP_HOST} ^grafjo\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.grafjo\.com$ RewriteRule ^/?$ "http\:\/\/www\.grafjo\.net\/" [R=301,L]
N NiteWave Administrator Jan 24, 2013 #2 Jan 24, 2013 #2 if in .htaccess, try following: RewriteEngine On RewriteCond %{HTTP_HOST} ^grafjo\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.grafjo\.com$ RewriteRule ^(.*)$ http://www.grafjo.net/$1 [R=301,L]
if in .htaccess, try following: RewriteEngine On RewriteCond %{HTTP_HOST} ^grafjo\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.grafjo\.com$ RewriteRule ^(.*)$ http://www.grafjo.net/$1 [R=301,L]
W webizen Well-Known Member Jan 24, 2013 #4 Jan 24, 2013 #4 ingebolk said: Didn't work for me :O i got the same problem Click to expand... You should enable rewrite logging to see where the problem. To enable rewrite logging, add 'RewriteLogLevel 9' in the httpd.conf vhost. Then grep 'REWRITE' from /usr/local/apache/logs/error_log
ingebolk said: Didn't work for me :O i got the same problem Click to expand... You should enable rewrite logging to see where the problem. To enable rewrite logging, add 'RewriteLogLevel 9' in the httpd.conf vhost. Then grep 'REWRITE' from /usr/local/apache/logs/error_log