Results 1 to 15 of 100
Page 1 of 7
FirstFirst 1 2 3 ... LastLast

Thread: [RELEASE] Spider friendly URLs

  1. #1
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013

    [RELEASE] Spider friendly URLs

    For vB 2.0

    This little hackette is a quick fix to allow search engine bots to spider your threads.

    Although this will allow the bots to index every thread on your site, it will not make the threads 'search engine optimized'. They will see exactly what you see when you visit your site. It simply removes the CGI bits from the URL's which prevents most search engine bots from spidering more than one level deep.

    If you want a hack that allows to fully customize how the thread will look to the search engine bot, you should look at Overgrows more complete hack here.

    The advantage of this hack over Overgrows is that it does not require htaccess support which can have performance issues. This could also be seen as a disadvantage though as my hack requires that you have mod_rewrite enabled on your Apache Server, whereas Overgrows method should work with just about any web host out there.

    Take yer pick
    Last edited by fastforward; Sun 1st Jul '01 at 2:43pm.
    http://britishexpats.com/ - British expatriate community
     

  2. #2
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    got a demo/example url for us ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  3. #3
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by eva2000
    got a demo/example url for us ?
    http://dbforums.com

    You can see the forum links on the front page are like :

    http://dbforums.com/f5/s



    and the threads are like:

    http://dbforums.com/t44153/s.html
    http://britishexpats.com/ - British expatriate community
     

  4. #4
    Senior Member Overgrow is on a distinguished road Overgrow's Avatar
    Join Date
    May 2000
    Location
    Vancouver
    Posts
    381
    Hey very cool.. I haven't looked at the code yet, but nice job.

    One note though: The main point of my hack is getting Google to the archives, not really friendly URLs.. that was just a sidenote. The archiving is what I'm after.
    vB Retro -> See vBulletin 1.1.2 and travel back to the Year 2000!
    Overgrow the Government: The Edge Forums
    presented by Overgrow Marijuana Magazine


    *warning: adult content since vB1.1... now faster than ever!
     

  5. #5
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    yeah cool but do normal showthreads and forumdisplay urls still work ?

    i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

    http://animeboards.com/f2/s ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  6. #6
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by eva2000
    yeah cool but do normal showthreads and forumdisplay urls still work ?

    i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

    http://animeboards.com/f2/s ?
    hehe. Oh ye of little faith

    Yeah they do.

    The only urls that are trapped by the mod_rewrite directives are ones that match one of these three expressions:
    Code:
    ^/f([0-9]+)/s([^/]+?)$
    ^/t([0-9]+)/s([^/]+?)\.html$
    ^/s([^/])+?/$
    ie.
    /f234/s or /f234/s345345detr3
    /t2343/s.html or /t2343/s435345.html
    /s/ or /s435345345dfsdf/

    Actually I need to clarify in the docs that this assumes your forums are in the web root. Those directives should be prefixed with /forums/ or wherever if your vB is installed elsewhere.
    Last edited by fastforward; Fri 25th May '01 at 9:29pm.
    http://britishexpats.com/ - British expatriate community
     

  7. #7
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    cool.. yet another hack i'm gonna add hehe
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  8. #8
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  9. #9
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by eva2000
    oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images
    No problems at all. I just installed Overgrows

    http://dbforums.com/archive/

    I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:
    Code:
    RewriteRule ^/archive/.* /archive/index.php [L]
    But either method will work.
    http://britishexpats.com/ - British expatriate community
     

  10. #10
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    Originally posted by fastforward

    No problems at all. I just installed Overgrows

    http://dbforums.com/archive/

    I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:
    Code:
    RewriteRule ^/archive/.* /archive/index.php [L]
    But either method will work.
    okay great then
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  11. #11
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    okay i already have mod_rewrite so what do i do for the first step something like this ?

    <VirtualHost 157.238.46.185>
    ServerAdmin webmaster@animeboards.net
    DocumentRoot /home/usr1/public_html
    BytesLog domlogs/animeboards.net-bytes_log
    ServerName www.animeboards.net
    ServerAlias animeboards.com *.animeboards.com
    CustomLog domlogs/animeboards.net combined
    ScriptAlias /cgi-bin/ /home/usr1/public_html/cgi-bin/
    RewriteEngine on
    RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L]
    RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
    RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L]
    </VirtualHost>
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  12. #12
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    That's correct as long as your foums are in the web root. If not, you need to change those to something like:
    Code:
    RewriteRule ^/forums/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
    http://britishexpats.com/ - British expatriate community
     

  13. #13
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    okay gonna implement this now hehe
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  14. #14
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    okay installed one problem i sthe showthread links for

    Go to first unread post go to

    http://animeboards.com/# now
    also

    Admin options for

    split

    merge

    move

    stick/unstick threads all don't work

    as well as view mod queue, view attachment queue etc

    they are redirect to my front page since i have an htaccess for error redirects to my front page
    Last edited by eva2000; Sat 26th May '01 at 12:48am.
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  15. #15
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by eva2000
    okay installed one problem i sthe showthread links for

    Go to first unread post go to

    http://animeboards.com/# now
    Not sure what you mean here.
    also

    Admin options for

    split

    merge

    move

    stick/unstick threads all don't work

    as well as view mod queue, view attachment queue etc

    they are redirect to my front page since i have an htaccess for error redirects to my front page
    I really can't see how the changes could in anyway affect these. You did only change the links in the forumhome and forumdisplay templates right?

    The links you're talking about don't even point to pages that use these templates. they are still in their original form and point to postings.php.
    http://britishexpats.com/ - British expatriate community
     

Page 1 of 7
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. Turn off spider friendly urls
    By sammyman in forum Chit Chat
    Replies: 5
    Last Post: Mon 12th Apr '04, 10:07pm
  2. Search engine friendly URLs....
    By Matthew in forum PHP & HTML Questions
    Replies: 9
    Last Post: Mon 1st Mar '04, 7:11am
  3. Vb3 not spider friendly ?
    By Sharg in forum vBulletin Suggestions and Feedback
    Replies: 36
    Last Post: Wed 10th Sep '03, 12:52pm
  4. **Spider Friendly url's with IIS?**
    By cobradude in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Sun 5th Jan '03, 11:16pm
  5. Search Friendly vB URLS.
    By shri in forum vBulletin 1.1.x Suggestions and Feedback
    Replies: 14
    Last Post: Fri 13th Oct '00, 8:43pm

Bookmarks

Posting Permissions

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