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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > moving htaccess content to httpd.conf

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2013, 11:27 AM
MentaL MentaL is offline
Senior Member
 
Join Date: Nov 2010
Posts: 57
Default moving htaccess content to httpd.conf

Hi

I'm having issues getting litespeed to actually load new rules that have been moved into httpd.conf. Assistance is appreciated.

Thanks.

configurations loaded; /usr/local/apache/conf/forum.htaccess.conf
Content

Code:
<Directory /home/x/public_html/forum>
RewriteEngine On
#vBseo configuration
RewriteCond &#37;{HTTP_HOST} ^[0-9]+(\.[0-9]+){3} [OR]
RewriteCond &#37;{HTTP_HOST} ^(www.forum.x.com) [NC]
RewriteRule ^(.*)$ http://forum.x.com/$1 [R=301,L]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond &#37;{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp007|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
</directory>
#update

got it working, had to remove directory

Last edited by MentaL; 02-07-2013 at 11:40 AM..
Reply With Quote
  #2  
Old 02-07-2013, 05:13 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,292
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
rewriterule has a bit difference in per-server or per-directory context.

Quote:
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteRule ^(.+)$ vbseo.php [L,QSA]
==>
Quote:
RewriteRule ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteRule ^/((archive/)?(.*\.php(/.*)?))$ /vbseo.php [L,QSA]
RewriteRule ^/(.+)$ /vbseo.php [L,QSA]
in short, need add some / in some rewriterules
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 11:49 PM.



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