vBulletin Search Engine Optimization
|
This is a discussion on rewrite rules, httpd.conf 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 ...
| |||||||
|
#1
| |||
| |||
| rewrite rules, httpd.conf
Hi, I just moved on to a dedicated server and noticed this optimization tip below. Quote:
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 have in .htaccess now, PHP Code: |
|
#2
| ||||
| ||||
|
Look for your virtual host file, and put into the directory tag. For example your site are at /var/www/vhosts/yoursite.com/httpdocs You can found the config file related to your site at /var/www/vhosts/yoursite.com/conf open it and find Code: <Directory /var/www/vhosts/yoursite.com/httpdocs> put the rewrite rules here ! </directory> |
|
#3
| |||
| |||
|
I'm not seeing the directory /var. I must not be in the full root or something. I guess I will have to contact my host to see whats up.
|
|
#5
| ||||
| ||||
|
mine is here: /usr/local/apache/conf/httpd.conf try that |
|
#6
| |||
| |||
|
Sorry for the delay guys! I just emailed my host this morning. It looks like 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 vbseo rewrites the url for them as well. |
|
#7
| |||
| |||
|
I can only log into the full root through shell, not ftp.
|
|
#8
| ||||
| ||||
| Quote:
Code: RewriteEngine off
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now 6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO |
|
#9
| |||
| |||
|
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 disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums) #RewriteBase / #RewriteCond %{HTTP_HOST} !^blog\.webmastersitesi\.com .................................................. .................... the whole htaccess... <Directory "/"> Options All AllowOverride All </Directory> <Directory "/usr/local/apache/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> is the place correct? or i should go with /home/vhosts/yoursite.com/httpdocs |
|
#10
| ||||
| ||||
| Quote:
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now 6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO |
|
#11
| |||
| |||
|
just i want to ask if this correct: 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 still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^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 %{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] RewriteEngine On RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] </Directory> </IfModule> and I saved the file and restart the appachi is this OK? |
|
#12
| ||||
| ||||
|
Hello, since your forum resides in a subfolder, it should be: Code: <Directory "/home/q8manar/public_html/vb"> ... </Directory>
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now 6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO |
|
#13
| ||||
| ||||
|
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 still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^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(/.*)?)?)$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] </Directory> And I saved the file and restarted the appache But it does not work. 404 Not Found The requested URL xxxxxxx.html does not exist. Anyone can help me fix it ? |
|
#14
| ||||
| ||||
|
Do you have your other domain settings defined in /usr/local/apache/conf/httpd.conf ? (may be you put rewrite rules in a wrong file)
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now 6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO |
|
#15
| ||||
| ||||
|
yes I have 2 other domain in /usr/local/apache/conf/httpd.conf
|
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Syntax for Custom Rewrite Rules | Joe Ward | Custom Rewrite Rules | 10 | 04-15-2009 09:45 AM |
| move rewrite rules from .htaccess to httpd.conf | webgroup | Troubleshooting | 11 | 10-08-2008 05:25 PM |
| vBSEO 2.0 RC7 Released | Juan Muriente | vBSEO Announcements | 17 | 09-08-2005 11:00 PM |