LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   [solved] Rewrite Rules with RewriteBase not working (http://www.litespeedtech.com/support/forum/showthread.php?t=6465)

BurakH 12-15-2012 02:26 AM

[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]

NiteWave 12-15-2012 08:41 PM

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 ?

BurakH 12-16-2012 12:41 AM

Quote:

Originally Posted by NiteWave (Post 39379)
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 ?

NiteWave 12-16-2012 05:08 PM

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

BurakH 12-17-2012 05:53 PM

The problem is solved. Thank you very much.


All times are GMT -7. The time now is 11:44 PM.