LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Redirect not work

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2013, 12:32 PM
pardis pardis is offline
Senior Member
 
Join Date: Jun 2011
Posts: 83
Default Redirect not work

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]
Reply With Quote
  #2  
Old 01-23-2013, 06:03 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
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]
Reply With Quote
  #3  
Old 01-24-2013, 08:25 AM
ingebolk ingebolk is offline
New Member
 
Join Date: Jan 2013
Posts: 1
Didn't work for me :O i got the same problem
Reply With Quote
  #4  
Old 01-24-2013, 11:56 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by ingebolk View Post
Didn't work for me :O i got the same problem
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:18 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.