I want to move my rewrite rules from my .htaccess to my httpd.conf, but I don't know exactly how to do it...
I know it must be like this:
<Directory /path/to/my/forum>
[insert rewrite rules here]
</Directory>
But I don't know if I need to change something of my .htaccess before...
I hope someone can help me...
Here is my .htaccess
And this would be my path...Code:RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.elforro\.com$ RewriteRule (.*) http://www.elforro.com/$1 [R=301,L] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{QUERY_STRING} !vbseourl= RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron) RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$ RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
Code:<Directory /www/elforro.com.ar/htdocs> [insert rewrite rules here] </Directory>
I just want to know what changes should I made to my rewrite rules in order to work ok on my httpd.conf
For ex. I think this lines won't work on httpd.conf
Code:RewriteCond %{HTTP_HOST} !^www\.elforro\.com$ RewriteRule (.*) http://www.elforro.com/$1 [R=301,L]
Thanks in advance!



LinkBack URL
About LinkBacks





Reply With Quote



