vBulletin Search Engine Optimization
This is a discussion on Replace clientscript path within the Feature Requests forums, part of the vBSEO SEO Plugin category; Hi, I just noticed I was getting a lot of 404's for scripts in the client scripts directory. It'd be ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Replace clientscript path
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 |
|
#2
| ||||
| ||||
| Re: Replace clientscript path
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. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#3
| |||
| |||
| Re: Replace clientscript path
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> |
|
#4
| ||||
| ||||
| Re: Replace clientscript path
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. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#5
| |||
| |||
| Re: Replace clientscript path
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?
|
|
#6
| ||||
| ||||
| Re: Replace clientscript path
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. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#7
| |||
| |||
| Re: Replace clientscript path
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)"
|
|
#8
| |||
| |||
| Re: Replace clientscript path
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: 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: Code: '^clientscript/vbulletin_css/(.*)$' => 'http://www.example.com/forumpath/clientscript/vbulletin_css/$1' Thanks, John Last edited by JohnM; 12-09-2005 at 05:15 PM. |
|
#9
| ||||
| ||||
| Re: Replace clientscript path
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.)
__________________ Keith Cohen / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum |
|
#10
| |||
| |||
| Re: Replace clientscript path
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: 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 |
|
#11
| |||
| |||
| Re: Replace clientscript path Quote:
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 |
|
#12
| ||||
| ||||
| Re: Replace clientscript path
Oh, I don't use any CRR's.
__________________ Keith Cohen / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum |
|
#13
| ||||
| ||||
| Re: Replace clientscript path
John, I've just replied to you here: http://www.vbseo.com/13176-post3.html (CRR should be slightly modified to get it working)
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace non english characters | mljask | General Discussion | 34 | 08-22-2008 04:05 PM |
| Replace showthread link with title... | reefland | General Discussion | 5 | 01-31-2006 07:29 PM |
| URL not under sitemap path | BamaStangGuy | Troubleshooting | 8 | 12-19-2005 10:12 PM |
| Create a virtual multi-level forum path BUG | TopAs | Bug Reporting | 2 | 08-16-2005 09:46 PM |