Hi,
I just noticed I was getting a lot of 404's for scripts in the client scripts directory. It'd be nice if vbSeo handled these rather than going through all the templates and making them absolute URLs.
Am using vb 3.5.2
This is a discussion on Replace clientscript path within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; Hi, I just noticed I was getting a lot of 404's for scripts in the client scripts directory. It'd be ...
Hi,
I just noticed I was getting a lot of 404's for scripts in the client scripts directory. It'd be nice if vbSeo handled these rather than going through all the templates and making them absolute URLs.
Am using vb 3.5.2
Hello Noodles,
all external scripts/style/images URLs should be working correctly because it is handled by vBSEO. Perhaps this is not path issue, but files really don't exists?
Could you please give an example URL?
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
The scripts are working fine now as I went through all the templates and updated the paths.
I was getting 404's like this:
/forum/members-lounge/clientscript/vbulletin_menu.js
The scripts were trying to be accessed by something like this:
Code:<script language="javascript" src="clientscript/vbulletin_menu.js"></script>
Hm.. which browser did you use? This should not be an issue: for instance, we have the same at this page (take a look in html source):
<script type="text/javascript" src="clientscript/vbulletin_global.js">
and it works correctly (because we have <base> tag inserted automatically where required)
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I haven't seen any problems, nor have any of my users (as far as i know), I'm just seeing these 404 errors in my reports. Maybe a spider that doesn't know about base?
Could be.. any browser supports it. but spiders should not be interested in fetching javascript
Can you take a look in access_log to get user-agent info that requests these URLs?
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
69.19.14.23 - - [01/Dec/2005:14:39:06 -0600] "GET /forum/members-lounge/clientscript/vbulletin_menu.js HTTP/1.1" 404 14 "http://www.bimmerwerkz.com/forum/members-lounge/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
This is happening due to the fact that the vBulletin file global.php writes the $style[css] variable as a relative url when you are storing your css in an external file. The $style[css] variable is added into your html via the headinclude template and you end up with some html like this:
This does not work for a lot of your vBSEO'd pages (like if you seo /faq/) because of the relative url.Code:<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-1234xyz-00001.css" id="vbulletin_css" />
Zachery from vBulletin has developed a hack to make the url absolute:
http://www.vbulletin.org/forum/showthread.php?t=63520
My suggestion is to use a CRR instead of the hack:
and it does appear to work - please check it out and post results.Code:'^clientscript/vbulletin_css/(.*)$' => 'http://www.example.com/forumpath/clientscript/vbulletin_css/$1'
Thanks,
John
Last edited by JohnM; 12-09-2005 at 04:15 PM.
I think I have avoided this issue because I run vBadvanced CMPS, which has built in functions to change it to the full path. (Necessary for CMPS to work properly.)
I also run vBadvanced CMPS and I can tell you that some of your urls will still not display your CSS correctly if for instance you are using custom CRR's like this:
Please comment if I am incorrect in this assumption as now you have got me curious about the CMPS "fix" and perhaps the CRR isn't necessary.Code:'^faq\.php$' => 'faq/' '^faq\.php\?faq=vb_faq' => 'faq/vbulletin-faq/' '^faq\.php\?faq=vb_user_maintain' => 'faq/user-maintain/' '^faq\.php\?faq=vb_board_usage' => 'faq/board-usage/' '^faq\.php\?faq=vb_read_and_post' => 'faq/read-and-post/'
Thank you,
-John
Oleg,Originally Posted by Oleg Ignatiuk
could you please take a look at my posts and see if this is indeed supposed to be handled internally by vbSEO and perhaps it is missing this for some reason?
Thanks,
John
Oh, I don't use any CRR's.
John,
I've just replied to you here: forum in root trouble with faq.php CRR
(CRR should be slightly modified to get it working)
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!