Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DC SEO vB URL Rewrite Details »»
DC SEO vB URL Rewrite
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.5.0 Beta 3 Rating:
Released: 06-28-2005 Last Update: Never Installs: 264
Uses Plugins
Is in Beta Stage  
No support by the author.

[high]Removed until further notice[/high]

[DC Seo vB URL Rewrite]

Information
  • [high]vBulletin Version:[/high] 3.5.x
  • [high]Author:[/high] Dean Clatworthy
  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.
What does this modification do?
This modification will allow you to automatically have more search engine friendly URLs in your vBulletin. A forum which would normally display as forumdisplay?f=1 will now appear as f1-forumtitle.html and the same with threads. Having keywords in your URL can be of an advantage in search-engine ranking.

Requirements:
  • You must have mod_rewrite apache module enabled on your server. Contact your host for more information.
  • This will not work well for non-english boards as it strips most non-alpha numeric characters. E.g. ? would be stripped on french boards etc

Installation

1/

Please read the readme.txt file included in the zip for details on how to install this modification.


Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #372  
Old 11-16-2005, 08:48 PM
Zhen-Xjell's Avatar
Zhen-Xjell Zhen-Xjell is offline
 
Join Date: Oct 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dontom
Hello,
I intend to use this on a german forum - we use umlauts there (a,?,?,?) - will the code from here (https://vborg.vbsupport.ru/showpost....&postcount=348) replace them by their english equivalents? (ae, ue, oe, ss)

Thanks
Thomas
Hi Dontom, I use Dean's code too, and the umlaut's are preserved:

http://de.castlecops.com/forum
Reply With Quote
  #373  
Old 11-17-2005, 01:24 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dontom
Hello,
I intend to use this on a german forum - we use umlauts there (a,?,?,?) - will the code from here (https://vborg.vbsupport.ru/showpost....&postcount=348) replace them by their english equivalents? (ae, ue, oe, ss)

Thanks
Thomas
The latest version replaces foreign characters with their english equivalent. But I have yet to decide whether to replace foreign chars or not yet Please bare in mind I have not yet released the latest version.
Reply With Quote
  #374  
Old 11-17-2005, 03:37 AM
Dontom Dontom is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you both for your answer! I will wait then for the next version
Thomas
Reply With Quote
  #375  
Old 11-17-2005, 04:14 PM
descds's Avatar
descds descds is offline
 
Join Date: Dec 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK i tried this but for some reason i couldn't get it to work.

I already have SEO friendly url's running in my subdreamer part of the site so i uploaded the plugin and put the copied

PHP Code:
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.htmlforumdisplay.php?f=$[L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.htmlshowthread.php?t=$1&page=$5&pp=10 [L
To my already established .htaccess file

PHP Code:
Options All -Indexes
Options 
+FollowSymLinks
RewriteEngine On
RewriteBase 
/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php 
so i ended up with

PHP Code:
Options All -Indexes
Options 
+FollowSymLinks
RewriteEngine On
RewriteBase 
/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php

RewriteRule 
^f([0-9]+)-([A-Za-z0-9\-]+)\.htmlforumdisplay.php?f=$[L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.htmlshowthread.php?t=$1&page=$5&pp=10 [L
It was working in as much to say that the forum links changed to html links but clicking them resulted in a page not found.

So i thought maybe its the base url as my forums, like many, are in the /forum/ directory of the root.

So i removed that, still the same. So i changed too

RewriteBase /forum

Still the same

and tried

RewriteBase /forum/

Still the same. What did i do wrong ?
Reply With Quote
  #376  
Old 11-17-2005, 11:57 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not that simple descds. This rule redirects everything (which is a bad thing), but I won't get into a discussion on poor usage of mod_rewrite now:

Code:
RewriteRule ^(.*) index.php
This will send every single URL you type to index.php. Why it's doing that I have no idea. This should be a temporary fix for you though:

Code:
 Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^f([0-9]+)-([A-Za-z0-9-]+).html$
RewriteCond %{REQUEST_URI} !^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$
RewriteRule ^(.*) index.php

RewriteRule ^f([0-9]+)-([A-Za-z0-9-]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$ showthread.php?t=$1&page=$5&pp=10 [L]
Give it a try anyway
Reply With Quote
  #377  
Old 11-18-2005, 06:30 AM
descds's Avatar
descds descds is offline
 
Join Date: Dec 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
It's not that simple descds. This rule redirects everything (which is a bad thing), but I won't get into a discussion on poor usage of mod_rewrite now:

Code:
RewriteRule ^(.*) index.php
This will send every single URL you type to index.php. Why it's doing that I have no idea. This should be a temporary fix for you though:

Code:
 Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^f([0-9]+)-([A-Za-z0-9-]+).html$
RewriteCond %{REQUEST_URI} !^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$
RewriteRule ^(.*) index.php

RewriteRule ^f([0-9]+)-([A-Za-z0-9-]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$ showthread.php?t=$1&page=$5&pp=10 [L]
Give it a try anyway

Thanks Dean but it didn't work My SEO friendly urls for subdreamer worked perfectly well but the forum ones results in a page not found on clicking ...

Any other ideas ?
Reply With Quote
  #378  
Old 11-18-2005, 09:57 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have subdreamer and your forum in the same directory?
Reply With Quote
  #379  
Old 11-18-2005, 10:10 AM
ginger22 ginger22 is offline
 
Join Date: Nov 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some questions about this hack:
1. Bug in thread, when it displayes pages, i.g. page2 have http://www.alpari-idc.com/en/forum/t...his-forum.html and page 3 of 3 have - http://www.alpari-idc.com/en/forum/s...9&page=3&pp=10
why?
2. How about "Last post" in forum index? it have http://www.alpari-idc.com/en/forum/s...=newpost&t=291, but i want to have hack this too.

P.S. Sorry for my English.
Reply With Quote
  #380  
Old 11-18-2005, 11:18 AM
descds's Avatar
descds descds is offline
 
Join Date: Dec 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Do you have subdreamer and your forum in the same directory?
No dean. Subdreamer is off the root and the forum is in forum/
Reply With Quote
  #381  
Old 11-18-2005, 01:16 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by descds
No dean. Subdreamer is off the root and the forum is in forum/
Then put just put the .htaccess file that is in the original zip in the forum directory
Reply With Quote
Reply


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. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05193 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete