Please try this to check if rewrite rules are working: [How to] Check if mod_rewrite is working for my site
This is a discussion on rewrite rules, httpd.conf within the General Discussion forums, part of the vBSEO SEO Plugin category; Please try this to check if rewrite rules are working: http://www.vbseo.com/f77/how-check-i...my-site-21502/...
Please try this to check if rewrite rules are working: [How to] Check if mod_rewrite is working for my site
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I have multiple domains in the httpd.conf (WHM/CPanel manged), where should I put the mod rewrite rules?
Also should i create another file and include it or should I insert it directly if yes, at which place?
Thanks, just did that, will check if it makes a difference or not.
It is working slightly better though not as fast as the stock setup, need to do some tinkering.
I did exactly so:
But after removing .htaccess the URLs are not reachable any more.Code:ServerAlias www.mb-forum.info ServerAlias ralfs-mercedes-benz-forum.de ServerAlias www.ralfs-mercedes-benz-forum.de <Directory "/var/www/dcx_redirect"> RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_gets 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] # allow from all # Options +Indexes </Directory> </VirtualHost>
Is there anything eles to do?
Hello Ralf,
is "/var/www/dcx_redirect" your forums folder name? (not domain root but folder where vB is installed)
Did you restart Apache?
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Right, was wrong conf, but it doesn´t work with the right one:
Of course I´ve restarted apache with wet hands ;-)<VirtualHost *>
DocumentRoot /var/www/dcx
# DocumentRoot /srv/www/htdocs/baustelle
ServerName Home - Ralfs Mercedes-Benz Forum
# ErrorLog /var/www/dcx/logs/errors.log
# CustomLog /var/www/dcx/logs/access.log combined
<Directory "/var/www/dcx">
# <Directory "/var/www/baustelle">
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_gets
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]
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Is "/var/www/dcx" your forums folder? I think your vB is located in /forum/, so it's probably /var/www/dcx/forum.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
??
The URL ist http: //www. db-forum.de
The board ist located http: //www. db-forum.de/forum
Therefore the apache-config must show to /var/www/dcx, not to /var/www/dcx/forum
You can leave your main apache config, but you should create a <Directory> section that points to a *forum* folder.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Additional??
<VirtualHost *>
DocumentRoot /var/www/dcx
ServerName Home - Ralfs Mercedes-Benz Forum
<Directory "/var/www/dcx">
</Directory>
<Directory "/var/www/dcx/forum">
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_gets
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]
allow from all
Options +Indexes
</Directory>
Does this work??
</VirtualHost>
Yes.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Or not:
Code:<Directory "/var/www/dcx"> # <Directory "/var/www/baustelle"> allow from all Options +Indexes </Directory> <Directory "/var/www/dcx/forum"> RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_ 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|imag RewriteRule ^(.+)$ vbseo.php [L,QSA] allow from all Options +Indexes </Directory> </VirtualHost> File /etc/apache2/sites-enabled/www.db-forum.de.conf saved web:~# /etc/init.d/apache2 restart Forcing reload of web server (apache2)... waiting apache2: Syntax error on line 625 of /etc/apache2/apache2.conf: Syntax error on line 47 of /etc/apache2/sites-enabled/www.db-forum.de.conf: </VirtualHost> without matching <VirtualHost> section failed!
The <Directory> section should be inside of <VirtualHost> .. </VirtualHost> section.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!