WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2008, 02:30 AM
4bidden 4bidden is offline
WebProWorld New Member
 

Join Date: Oct 2005
Location: Tempe, AZ
Posts: 17
4bidden RepRank 0
Default Odd htaccess problem that I just can't pinpoint!

Alright...so I just now noticed how some users are getting errors when trying to access my message forum directly.

Here is the issue.... (attention to trailing slashes)

h-ttp://www.atvdistrict.com/forum works
h-ttp://www.atvdistrict.com/forum/ works
h-ttp://atvdistrict.com/forum/ works
h-ttp://atvdistrict.com/forum does NOT work

The first 3 properly redirect to h-ttp://www.atvdistrict.com/forum/ but the last one magically send me to h-ttp://www.atvdistrict.com/forum//var/www/vhosts/atvdistrict.com/httpdocs/forum and produces a page not found error

How can I fix this one instance? Help is MUCH appreciated!

Here is the .htaccess file


Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.atvdistrict\.com
RewriteRule (.*)$ http://www.atvdistrict.com/forum/$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]

RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
301 Redirect and htaccess problem thindenim Web Programming Discussion Forum 5 03-13-2007 10:55 PM
HTML parse as PHP using .htaccess problem richkoi IT Discussion Forum 10 09-03-2005 10:10 AM
AOL's Beta of Pinpoint Travel WPW_Feedbot Search Engine Optimization Forum 0 03-21-2005 02:00 PM
AOL Unveils Pinpoint Travel Search WPW_Feedbot Marketing Strategies Discussion Forum 0 03-21-2005 01:30 AM
mod_rewrite, .htaccess and the root directory problem PhilC Web Programming Discussion Forum 0 02-17-2004 02:30 PM


Search Engine Friendly URLs by vBSEO 3.0.0