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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [solved] Rewrite Rules with RewriteBase not working

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2012, 02:26 AM
BurakH BurakH is offline
New Member
 
Join Date: Dec 2012
Posts: 3
Default [solved] Rewrite Rules with RewriteBase not working

Hello;

We use LSWS 4.1.13. The site worked in Apache but now the ReWrite rules aren't working correctly. Below are the rules in the problematic .htaccess file:

(Script is MyBB Google Seo)
Quote:
RewriteEngine on

# Google SEO Eklentisinin calışması icin Sunucunuzda RewriteBase, RewriteRules Ozelliğinin etkin olması gerekmektedir.
RewriteBase /

# search.php sorunları icin gecici cozumler:
# .htaccess dosyasının yazma izni vermeniz gerekmektedir!(Chmod 777)
RewriteRule ^([^&]*)&(.*)$ http://www.mydomain.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forumlar:
RewriteRule ^Forum\-([^./]+)\.html$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Konular:
RewriteRule ^Konu\-([^./]+)\.html$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Duyurular:
RewriteRule ^Duyuru\-([^./]+)\.html$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Kullanıcılar:
RewriteRule ^Uye\-([^./]+)\.html$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Takvimler:
RewriteRule ^ForumTakvimi\-([^./]+)\.html$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Etkinlikler:
RewriteRule ^Etkinlik\-([^./]+)\.html$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

Last edited by NiteWave; 12-18-2012 at 05:54 PM..
Reply With Quote
  #2  
Old 12-15-2012, 08:41 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
don't see any special in the .htaccess file.

can you enable rewritelog and set log level to 9, then check error.log for detail about rewrite issue ?
Reply With Quote
  #3  
Old 12-16-2012, 12:41 AM
BurakH BurakH is offline
New Member
 
Join Date: Dec 2012
Posts: 3
Quote:
Originally Posted by NiteWave View Post
don't see any special in the .htaccess file.

can you enable rewritelog and set log level to 9, then check error.log for detail about rewrite issue ?
how can i enable rewritelog ?
Reply With Quote
  #4  
Old 12-16-2012, 05:08 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
if the virtual host comes from apache's httpd.conf, refer
http://httpd.apache.org/docs/2.2/mod...tml#rewritelog
use RewriteLog and RewriteLogLevel directive

if the virtual host is lsws native one,
lsws admin console->Virtual Hosts->select the vhost
->Rewrite->
Enable Rewrite:Yes
Log Level:9
Reply With Quote
  #5  
Old 12-17-2012, 05:53 PM
BurakH BurakH is offline
New Member
 
Join Date: Dec 2012
Posts: 3
The problem is solved. Thank you very much.
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 01:42 AM.



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