moving htaccess content to httpd.conf

Discussion in 'General' started by MentaL, Feb 7, 2013.

  1. MentaL

    MentaL Member


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


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

    <Directory /home/x/public_html/forum>
    RewriteEngine On
    #vBseo configuration
    RewriteCond %{HTTP_HOST} ^[0-9]+(\.[0-9]+){3} [OR]
    RewriteCond %{HTTP_HOST} ^( [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{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

    got it working, had to remove directory
    Last edited: Feb 7, 2013
  2. NiteWave

    NiteWave Administrator
    rewriterule has a bit difference in per-server or per-directory context.

    in short, need add some / in some rewriterules

Share This Page