[solved] LSLB Rewrite doesn't work

dihuta

Well-Known Member
#1
Hello,

Today I try to use Rewrite feature of LSLB but it doesn't work.
Here what I try:

Virtual Host -> my virtual host -> Rewrite
- Enable Rewrite to Yes
- Rewrite rules to test

RewriteEngine on
RewriteRule ^test.rss http://www.google.com/ [L,R=301]
The I try www.mydomain.com/test.rss
Nothing happen, page not found. This rule works fine if I put it in .htaccess of a node.

Please help me to use it.
Thank you.
 
Last edited by a moderator:

dihuta

Well-Known Member
#5
Help me to move Rewrite rules of VBSEO to LSLB rewrite

Hello,

I moved all my rewrite rules to LSLB Rewrite, but I can not make VBSEO Rewrite rules to work.

Here it is:

PHP:
#########
RewriteBase /

### VBSEO
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|db/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [QSA]
Could you please help me make this work?
Thank you so much.
 

dihuta

Well-Known Member
#7
I try this, but it doesn't work. All pages was displayed in blank

### VBSEO
RewriteRule ^/((urllist|sitemap_).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|db/|cron|vbseo_sitemap)
RewriteRule ^/((archive/)?(.*.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|clientscript|cpstyles|images)/
RewriteRule ^/(.+)$ vbseo.php [QSA]
 
Top