within the General Discussion forums part of the vBSEO SEO Plugin category; Hi. I just moved on to a dedicated server and noticed this optimization tip below. Move rewrite rules from htaccess...
rewrite rules applied in the htaccess files can be moved directly into the httpd conf file for more efficient performance.
I'm not seeing httpd conf on the server now. What excatly do I put in httpd conf everything that is in htaccess? Here is what I undergo in htaccess now.
RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^([^/]+)$ http:// Mysite com [L,R=301]
Look for your virtual entertain file and put into the directory tag. For example your site are at /var/www/vhosts/yoursite com/httpdocsYou can open the config register related to your place at /var/www/vhosts/yoursite com/conf change state it and find
I'm not seeing the directory /var. I must not be in the full root or something. I guess I will have to communicate my host to see whats up.
Sorry for the delay guys! I just emailed my host this morning. It looks desire I only have access to the one account via ftp. Do you guys run different accounts(websites) on your server? I have troubles with this. It seems
Do you guys run different accounts(websites) on your server? I undergo troubles with this. It seems vbseo rewrites the url for them as come up.
i see at ssh should i put the documents # Comment the following line (add '#' at the beginning)# to disable mod_rewrite functions.# Please note: you still need to alter the hack in# the
control adorn to stop url rewrites. RewriteEngine On# Some servers require the Rewritebase directive to be# enabled (remove '#' at the beginning to initiate)# Please say: when enabled you must include the path# to your grow
folder (i e. RewriteBase /forums)#RewriteBase /#RewriteCond %{HTTP_HOST} !^communicate\ webmastersitesi\ com.................................................. ................... the whole htaccess... <Directory "/"> Options All AllowOverride All</Directory><Directory "/usr/local/apache/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order accept,deny Allow from all</Directory> is the place correct? or i should go with /domiciliate/vhosts/yoursite com/httpdocs
just i want to ask if this change by reversal:in httpd cnf :<IfModule mod_bandwidth c><Directory "/home/q8manar/public_html"> BandWidth all 2000# Comment the following line (add '#' at the beginning)# to disable mod_rewrite functions.# Please note: you comfort need to alter the hack in# the
hold back panel to stop url rewrites. RewriteEngine On# Some servers demand the Rewritebase directive to be# enabled (remove '#' at the beginning to initiate)# Please say: when enabled you must consider the path# to your root
folder (i e. RewriteBase /forums/)#RewriteBase /#RewriteCond %{HTTP_entertain} !^www\ yourdomain\ com#RewriteRule (.*) [L,R=301]RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\ gz)?)$ vbseo_sitemap/vbseo_getsitemap php?sitemap=$1 [L]RewriteCond %{QUERY_arrange} !vbseourl=RewriteCond %{communicate_URI} !(admincp/|modcp/|chat|cron)RewriteRule ^(.*\ php(/.*)?)$
php?vbseourl=$1 [L,QSA]RewriteCond %{communicate_FILENAME} !\.(jpg|gif)$RewriteRule ^(archive/.*)$
php?vbseourl=$1 [L,QSA]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{communicate_FILENAME} !-dRewriteCond %{communicate_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/RewriteRule ^(.+)$
php?vbseourl=$1 [L,QSA]RewriteEngine OnRewriteRule ^((urllist|sitemap).*\.(xml|txt)(\ gz)?)$ vbseo_sitemap/vbseo_getsitemap php?sitemap=$1 [L]</Directory></IfModule> and I saved the file and start the appachiis this OK?
hi. I added in /usr/local/apache/conf/httpd conf <Directory "/home/free4vn/public_html/vbb"> # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you comfort be to alter the hack in # the
control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (shift '#' at the beginning to initiate) # gratify say: when enabled you must consider the path # to your root
folder (i e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_entertain} !^www\ yourdomain\ com #RewriteRule (.*) http://www yourdomain com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\ gz)?)$ vbseo_sitemap/vbseo_getsitemap php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron) RewriteRule ^((archive/)?(.*\ php(/.*)?)?)$
php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{communicate_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$
php [L,QSA] </Directory> And I saved the file and restarted the appache But it does not bring home the bacon. 404 Not Found The requested URL xxxxxxx html does not exist. Anyone can help me fix it ?
Do you undergo your other domain settings defined in /usr/local/apache/conf/httpd conf ? (may be you put rewrite rules in a wrong register)
Powered by vBulletin Version 3.8.0 Release Candidate 2Copyright &write;2000 - 2009. Jelsoft Enterprises Ltd. SEO by vBSEO 3.2.5 ©2008. Crawlability. Inc.
Forex Groups - Tips on Trading
Related article:
http://www.vbseo.com/f2/rewrite-rules-httpd-conf-17835/
comments | Add comment | Report as Spam
|