View Full Version : Page not found
zigzap
03-05-2009, 05:18 AM
Seems like everything is setup correctly on the admin side... the page even displays correctly but when I click into a category I get "Page not found".
Can someone tip me off to what I did wrong?
http://icareohio.com/deals/
Brian
03-06-2009, 11:47 AM
Looks like you enabled the SEO URL setting, but missed the note in it's description about uploading the .htaccess file from the download package.
This option will replace your normal URL's (Ex: /links/browselinks.php?c=2) with more spider friendly URL's (Ex: /links/main-category/). Please note that you must upload the .htaccess file that comes in the "Extras (do not upload)" folder of the download package to your /links folder if you intend to use this option. ;)
zigzap
03-09-2009, 10:54 AM
Brian,
I have the .htaccess file in place in the /deals folder but I still get the "page not found" error.
Would I need to amend the contents of this .htaccess file to the .htaccess file in the root of the site?
Regards,
Lane
Brian
03-09-2009, 11:15 AM
Try looking in the deals/.htaccess file for this line near the top:
#RewriteBase /links
Replace with this:
RewriteBase /deals
And see if you get any better results.
zigzap
03-09-2009, 11:33 AM
Thank you that made the redirects work but I am getting a 404 error for "browsecategory.php" which I can't find inside the release. Is there something I have configured incorrectly to be causing this?
zigzap
03-09-2009, 12:21 PM
Update: I made an error updating .htaccess file (I update the one in the root of the folder instead of inside the /deals/ folder) which was causing the file not found error.
Since changing things back to the way they are supposed to be I am back to the "page not found" error.
Here are the htaccess files I have in use:
/public_html/deals
Options +FollowSymlinks
RewriteEngine On
RewriteBase /deals
RewriteRule ^([a-zA-Z_0-9\-]+)/robots\.txt$ robots.txt [QSA,L]
RewriteRule ^members/page([0-9]+).html$ index.php?page=$1 [QSA,L]
RewriteRule ^whatsnew/entries/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newentries&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/entries/(([0-9]?|-)+/?)$ browsecategory.php?do=newentries&cutoffdate=$1 [QSA,L]
RewriteRule ^whatsnew/posts/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newposts&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/posts/(([0-9]?|-)+/?)$ browsecategory.php?do=newposts&cutoffdate=$1 [QSA,L]
RewriteRule ^whatspopular/([a-zA-Z_0-9\-]+)/$ browsecategory.php?do=popentries&orderby=$1 [QSA,L]
RewriteRule ^members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?do=member&userrewrite=$1&page=$2 [QSA,L]
RewriteRule ^members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?do=member&userrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?userrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?userrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/(([a-zA-Z_0-9]|-)+)/$ showentry.php?entryrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/epage([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&epage=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?catrewrite=$1&page=$2 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/?$ browsecategory.php?catrewrite=$1 [QSA,L]
/public_html/
# 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]
zigzap
03-09-2009, 12:23 PM
Please disregard my last post, I was putting the wrong htaccess file in place.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.