I'm getting 404 errors on urls pointing to my archive which have a dash in them,
i.e.
http://www.ndsengineers.com/archive/index.php/f-37.html
you can replace the "37" with any numbers, makes no difference, these files do not exist and you get the 404 error.
If you remove the dash
i.e.
http://www.ndsengineers.com/archive/index.php/f37.html
you get directed to the archive main page.
Same deal here, these pages don't exist so "37" can be any number.
This is my vhost entry for this site:
<VirtualHost *:80>
ServerName www.ndsengineers.com
ServerAdmin [email address]
ServerAlias ndsengineers.com
ErrorDocument 404 http://www.ndsengineers.com
CustomLog /var/log/apache2/ndsengineers.log combined
redirect 301 /links http://shop.ndsengineers.com
<Directory "/srv/www/htdocs/www.ndsengineers.com">
Options +FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
DocumentRoot /srv/www/htdocs/www.ndsengineers.com/
</VirtualHost>
and my .htaccess file
# 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 /
RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteRule ^$ vbseo.php?vbseourl=index.php [L]
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
The above .htaccess file is in the root folder,
I don't have any .htaccess file in the /archive directory.
In vBSEOcp.php I have
"File Not Found" requests handling?
redirect to homepage.
&
Rewrite + 301 Redirect Archive Pages
I'm running 3.0 RC4
Any help is appreciated.


LinkBack URL
About LinkBacks





Reply With Quote