LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > htaccess per vbseo

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2012, 09:36 AM
Narabedla Narabedla is offline
New Member
 
Join Date: Oct 2012
Posts: 3
Default htaccess per vbseo

Sorry for my bad englis hand if I'm wrong section , I have a problem with vBSEO, despite having done all the fixes recommended by my hosting (Netsons) and also read in your post, I can not view the pages, I find getting this error:
404 Not Found
The resource requested could not be found on this server! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!


Could you please help me understand where am I wrong?
This is my htaccess
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\.tasteofmusic\.com
#RewriteRule (.*) http://www.tasteofmusic.net/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 | vbseo_sitemap)
RewriteRule ^ ((archivio /)? (. * \. Php (/. *)?)) $ Vbseo.php [L, QSA]
RewriteCond% {} REQUEST_FILENAME!-F
RewriteCond% {} REQUEST_FILENAME!-D
RewriteCond% {} / REQUEST_FILENAME! (AdminCP | modcp | ClientScript | cpstyles | immagini) /
RewriteRule ^ (. +) $ Vbseo.php [L, QSA]
  
SecFilterEngine Off
SecFilterScanPOST Off
Reply With Quote
  #2  
Old 10-16-2012, 11:35 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
It is better to enable rewrite logging to check where the 404 comes from.

To do that, add the following line to httpd.conf and restart lsws to pick it up. Log will be in /usr/local/apache/logs/error_log.
Quote:
RewriteLogLevel 9
Reply With Quote
  #3  
Old 10-16-2012, 12:41 PM
Narabedla Narabedla is offline
New Member
 
Join Date: Oct 2012
Posts: 3
Default htaccess per vBSEO

Quote:
Originally Posted by webizen View Post
It is better to enable rewrite logging to check where the 404 comes from.

To do that, add the following line to httpd.conf and restart lsws to pick it up. Log will be in /usr/local/apache/logs/error_log.
All pages are 404, now only view the Calendar,
which is still under construction, with a few post test.
You can check it out yourself, this is the logs / error:

http://tasteofmusic.net/forum.php

Code:
2012-10-16 21:25:01.468 [INFO] [151.16.188.16:56259-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:25:01.468 [INFO] [151.16.188.16:56259-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/content/mobiquo/mobiquo.php] 
2012-10-16 21:25:01.186 [INFO] [151.16.188.16:56259-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:25:01.186 [INFO] [151.16.188.16:56259-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/content/] 
2012-10-16 21:24:38.453 [INFO] [151.16.188.16:56169-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:24:38.453 [INFO] [151.16.188.16:56169-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/thread10.html] 
2012-10-16 21:24:21.957 [INFO] [151.16.188.16:56133-3#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:24:21.957 [INFO] [151.16.188.16:56133-3#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/blogs.html] 
2012-10-16 21:24:19.009 [INFO] [151.16.188.16:56133-2#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:24:19.009 [INFO] [151.16.188.16:56133-2#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/mobiquo/mobiquo.php] 
2012-10-16 21:24:16.486 [INFO] [151.16.188.16:56134-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:24:16.486 [INFO] [151.16.188.16:56134-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/avatars/member1.gif] 
2012-10-16 21:24:16.173 [INFO] [151.16.188.16:56135-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:24:16.173 [INFO] [151.16.188.16:56135-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/avatars/member1.gif] 
2012-10-16 21:24:15.174 [INFO] [HTAccess] Updating configuration from [/home/huqbfllk/public_html/.htaccess]
2012-10-16 21:03:45.322 [INFO] [66.249.76.140:38518-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 21:03:45.322 [INFO] [66.249.76.140:38518-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/forum11.html] 
2012-10-16 21:03:42.838 [INFO] [HTAccess] Updating configuration from [/home/huqbfllk/public_html/.htaccess]
2012-10-16 20:47:49.863 [INFO] [151.16.33.142:55879-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 20:47:49.863 [INFO] [151.16.33.142:55879-1#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/thread13.html] 
2012-10-16 20:47:46.183 [INFO] [151.16.33.142:55879-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 20:47:46.183 [INFO] [151.16.33.142:55879-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/avatars/member1.gif] 
2012-10-16 20:45:25.209 [INFO] [66.249.76.140:63605-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml] 
2012-10-16 20:45:25.209 [INFO] [66.249.76.140:63605-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/forum10.html] 
2012-10-16 20:43:36.726 [INFO] [151.16.33.142:55716-0#APVH_tasteofmusic.net] File not found [/home/huqbfllk/public_html/404.shtml]
Reply With Quote
  #4  
Old 10-16-2012, 01:00 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
Quote:
Originally Posted by Narabedla View Post
...


Could you please help me understand where am I wrong?
This is my htaccess
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\.tasteofmusic\.com
#RewriteRule (.*) http://www.tasteofmusic.net/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 | vbseo_sitemap)
RewriteRule ^ ((archivio /)? (. * \. Php (/. *)?)) $ Vbseo.php [L, QSA]
RewriteCond% {} REQUEST_FILENAME!-F
RewriteCond% {} REQUEST_FILENAME!-D
RewriteCond% {} / REQUEST_FILENAME! (AdminCP | modcp | ClientScript | cpstyles | immagini) /
RewriteRule ^ (. +) $ Vbseo.php [L, QSA]
  
SecFilterEngine Off
SecFilterScanPOST Off
Are these rewrite rules really as shown here ? with space ' ' in between things like 'AdminCP' and '/' ("AdminCP' '/" instead of "AdminCP/")? If so, the rules are not right. it could be the reason of 404.
Reply With Quote
  #5  
Old 10-16-2012, 01:09 PM
Narabedla Narabedla is offline
New Member
 
Join Date: Oct 2012
Posts: 3
Default htaccess vbseo

Quote:
Originally Posted by webizen View Post
Are these rewrite rules really as shown here ? with space ' ' in between things like 'AdminCP' and '/' ("AdminCP' '/" instead of "AdminCP/")? If so, the rules are not right. it could be the reason of 404.
Yes, I copied this from your topic, before this visualized 403 error.
Would you be so kind, you want to correct the htaccess?
Reply With Quote
  #6  
Old 10-17-2012, 11:27 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
http://www.litespeedtech.com/support...01&postcount=9
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:31 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.