Redirect not work

Discussion in 'General' started by pardis, Jan 23, 2013.

  1. pardis

    pardis Well-Known Member

    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]
    
     
  2. NiteWave

    NiteWave Administrator

    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]
     
  3. ingebolk

    ingebolk New Member

    Didn't work for me :O i got the same problem
     
  4. webizen

    webizen Well-Known Member

    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
     

Share This Page