|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
Mod Name / Version: Spider Modification 1.1 Description: Trick search engines spiders into reading your forums by telling them pages are plain HTML. Right now it will only work on home, forums, threads Working Under: UBB.Threads 6.3 Mod Status: Beta Any pre-requisites: Running Apache, your host must have mod_rewrite enabled Author(s): Charles Date: 08/24/03 Credits: Files Altered: ubbthreads.tmpl,postlist.tmpl New Files: Database Altered: no Info/Instructions: This is basicly the same I posted in UBBdev chitchat forum. I am just fooling around and am sure cleverer people will tell me how to achieve this better <img src="/forum/images/graemlins/tongue.gif" alt="" /> the actual threads were added even though I am not satisfied with the name. you can download it; removed, as Josh improved spidering This mod has been downloaded [] http://www.marsdev.net/mods/count2.png[/] times You can now link to ubbthreads.html instead of PHP, the spider will not know he is accessing dynamic content. Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so. Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Last edited by Charles; 01/11/2004 10:46 AM.
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
just for info: right now threads are linked like this thread.t1_10_0_collapsed_5__1.html t being threaded mode, 1 the cats and so on.
a bit ugly I agree. I will see if I can improve this before posting updated file
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm... for a spider mod it might be better and simpler to just use flat mode, great start tho, we were just talking about something similar last night 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yes, Allen and I were batting this around.  yes, extending it to showflat would be great for search engine content as well. 
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
[] AllenAyres said: hmmm... for a spider mod it might be better and simpler to just use flat mode, great start tho, we were just talking about something similar last night  [/] well I think threaded or flat is not as problematic as the number of arguments you have to fit in the name *edit* just got your point, actually you can use both, threaded is thread.t and flatmode thread.f but I might need some infos ob how search engines will react to the name I gave.
Last edited by Charles; 08/25/2003 4:21 AM.
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
ack, just saw the first '.' - you might really wanna consider a naming scheme like showflat_92826.html or showflat-92826.html - for spidering purposes (and for a general decent looking archive as well) you don't need all those extra arguments. For general linking purposes, something like: https://www.ubbdev.com/forum/showflat.php?&Number=92826 works as well as: https://www.ubbdev.com/forum/showflat...;o=&fpart=1 You'll probably wanna include the pages if there's more than one, so you might want p2 etc in there, but all those other arguments are a waste for something like this. 
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
One of the regulars here (name escapes me) has a way of using Rewrite, but not sure it is server efficient on high traffic sites..
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
well I was kinda suprised because from what I have seen the page number is actually not used. And at first glance I was not sure what all the other options do.
I could use only the thread number but the forum has to remain usable to people I think I don't know what kind of side effect this could bring.
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yes, I had someone interested in doing something like this. They suggested that using slashes (in place of &) was a better route. I wonder if there's any difference. http://www.zend.com/zend/spotlight/searchengine.php
|
|
|
|
Joined: Apr 2002
Posts: 610
Code Monkey
|
Code Monkey
Joined: Apr 2002
Posts: 610 |
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That page at Zend suggests if you use slashes instead.... Instead of showflat.php?Cat=&Number=1234 Use: showflat.php/Cat//Number/1234 That populates the $PATH_INFO variable in PHP with /Cat//Number/1234 Then you can use explode() to poulate the variables: If that method worked.... it could be done in the scripts..... and would not require mod rewrite. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yeah, you're right about updating. Alot of changes I think. I'm not sure I know where to start with an archive script.  but that would be best. I saw your example but didn't follow exactly how it was being done. ARe the arcives dumped and recreated each evening? What happens if someone adds to a thread. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
"archive" is basically a "recent posts" mod with .html extensions... you see an example at the top of the photopost support forums. Here's an example of a seperate page: http://www.destee.com/forums/archives/forums are forum_number.html and threads are thread_number.html http://www.vbulletin.org/hacks/index.php...&hackid=843It does a similar action of micah's modification in that it's using mod rewrite to make the pages appear to have .html extensions and short url's
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
[] JoshPet said:That page at Zend suggests if you use slashes instead.... Instead of showflat.php?Cat=&Number=1234 Use: showflat.php/Cat//Number/1234 That populates the $PATH_INFO variable in PHP with /Cat//Number/1234 Then you can use explode() to poulate the variables: If that method worked.... it could be done in the scripts..... and would not require mod rewrite.  [/] OK this is what will be used for classic so we might as well go this way. let me see what I can find on the subject 
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I've actually got this complete and we did some testing on one of my client's very large sites. 20,000 pages were successfully spidered the first night.  mod rewrite was not required.  Once I get it tested a bit more I'll write it up and post it. 
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
actually you can improve the process with mod rewrite by hiding the PHP file 
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yes... they were concerned about the overhead of mod rewrite. I don't know much about it, but their server guy told them it added load to the server. Wouldn't be a big deal on most sites.... but this site already takes 2 servers.
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
ok, so lets do one version for them and a better one for the rest of the community lol 
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Apr 2002
Posts: 610
Code Monkey
|
Code Monkey
Joined: Apr 2002
Posts: 610 |
yes, let's do people, c'mon now, MOVE IT...MOVE IT...MOVE IT!..........:D
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I've got something in play here..... We always had 380 pages in google.... today we now have 11,800. 
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
This works just fine on 6.2.3 as well 
|
|
|
|
Joined: Oct 2002
Posts: 64
Power User
|
Power User
Joined: Oct 2002
Posts: 64 |
I have small problem  when i modify htaccess i have mod_rewrite enabled please help Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [] [email protected][/] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/1.3.27 Server at www.forum.tarnow.pl Port 80
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
are you sure mod rewrite is enabled by apache ? otherwise contact joshpet he did a similar hack without requierment for mod rewrite 
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Oct 2002
Posts: 64
Power User
|
Power User
Joined: Oct 2002
Posts: 64 |
yes i,m sure mod rewrite is enabled
|
|
|
|
Joined: Apr 2002
Posts: 56
Power User
|
Power User
Joined: Apr 2002
Posts: 56 |
Silly question probably  - how do I find out if I have mod rewrite enabled?
|
|
|
|
Joined: Jan 2003
Posts: 263
Member
|
Member
Joined: Jan 2003
Posts: 263 |
A little off-topic... but how can I see how many of my pages are listed in google ? 
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
go to google and in search box type this
site:www.sitename.com sitename.com
|
|
|
|
Joined: Jan 2003
Posts: 263
Member
|
Member
Joined: Jan 2003
Posts: 263 |
The first line of my .htaccess file is a redirect: Redirect /index.html http://www.mydomain.net/forum/ubbthreads.phpSo will this still work if I add those 5 lines of code below that ?
|
|
|
|
Joined: Apr 2002
Posts: 610
Code Monkey
|
Code Monkey
Joined: Apr 2002
Posts: 610 |
hey, can we get rid of this mod please? I don't want any of my competitors to find out 
|
|
|
|
Joined: Jan 2003
Posts: 263
Member
|
Member
Joined: Jan 2003
Posts: 263 |
Wando, try this.... Test a very basic rewrite first: rewriteEngine on rewriteRule ^doesnotexist\.html$ /index.html [L] Put that in .htaccess in the web root directory of a working site with an index page called "index.html" (you can change the rewriteRule as needed to use the right index page URI). Now, request "doesnotexist.html" from that site. The server should provide the contents of index.html. If it doesn't work, then you have a problem with the way mod_rewrite is installed or configured on your server. 
|
|
|
|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 674 |
Josh.. you got this for 6.2.3?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I don't know, haven't looked at this.
This isn't what we are using here.
|
|
|
|
Joined: May 2003
Posts: 1,068
Junior Member
|
Junior Member
Joined: May 2003
Posts: 1,068 |
It would be great to have a working version of this 
|
|
|
|
Joined: Apr 2002
Posts: 610
Code Monkey
|
Code Monkey
Joined: Apr 2002
Posts: 610 |
mine works just fine! Went from having 454 pages to having over four thousand and counting...
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
|
Joined: May 2003
Posts: 1,068
Junior Member
|
Junior Member
Joined: May 2003
Posts: 1,068 |
The instructions read: You can now modify the links in your website to point to ubbthreads.html instead of ubbthreads.PHP, and the spider will not know he is accessing dynamic content.
Where (or what links) exactly do I change from php to html?
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
yes hows thos coming? does it work? where do you change to html from php?
|
|
|
|
Joined: Mar 2003
Posts: 1
Junior Member
|
Junior Member
Joined: Mar 2003
Posts: 1 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|