Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Mod_Rewrite error and access error
Old 06-13-2008, 06:09 AM Mod_Rewrite error and access error
Junior Talker

Posts: 4
Trades: 0
Hello everyone. This is my first post on your forum

My name is kost and I am from Greece.

Anyway, I installed Apache 2.2.8 and PHP 5.2.6 on my machine as well as MySQL 5.

I installed vBulletin and it works smoothly. But after I installed, vBSEO, which rewrites URLs to something like: instead of

Code:
http://www.webmaster-talk.com/newthread.php?do=newthread&f=132
for example

Code:
webmaster-talk.com/f3/mod-rewrite-error-and-access-error
and guess what? When I click a forum URL it automatically directs me to an error page like:

Code:
NOT FOUND
The requested URL /vb/f2/ was not found on this server.
Actions Taken so far: Go to Apache\conf\httpd.conf and add this lines

Code:
LoadModule rewrite_module modules/mod_rewrite.so
ClearModuleList
AddModule mod_rewrite.c
And added this .htaccess to my vb root folder (/localhost/vb) and on root folder (/localhost/)

Code:
# 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]
My second issue is that my site is not accessible from the internet (kostx.no-ip.org/vb) and if I go to localhost/vb/ I will get the index with the files instead of index.php which is the forum really..

Give me some suggestions please and thank's in advance
kost is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2008, 06:27 AM Re: Mod_Rewrite error and access error
rayofshadow's Avatar
Average Talker

Posts: 21
Name: Ray Astho
Location: Indonesia
Trades: 0
im not sure wih your rewrite rule, but you can try here:
http://www.webmaster-toolkit.com/mod...enerator.shtml
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
rayofshadow is offline
Reply With Quote
View Public Profile Visit rayofshadow's homepage!
 
Old 06-13-2008, 06:41 AM Re: Mod_Rewrite error and access error
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by rayofshadow View Post
im not sure wih your rewrite rule, but you can try here:
http://www.webmaster-toolkit.com/mod...enerator.shtml
Good point, but do I have to do all this for every single URL? Especially on a forum is not possible IMO!
kost is offline
Reply With Quote
View Public Profile
 
Old 06-13-2008, 08:54 PM Re: Mod_Rewrite error and access error
Junior Talker

Posts: 4
Trades: 0
Any help then? :Z
kost is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Mod_Rewrite error and access error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16348 seconds with 12 queries