Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-16-2013, 06:21 PM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure,

Before:
Code:
http://www.mysite.com/forums/my-forumname/
After:
Code:
http://www.mysite.com/forums/forumdisplay.php?f=45
Before:
Code:
http://www.mysite.com/forums/members/my-username.html
After:
Code:
http://www.mysite.com/forums/member.php?u=1
Before:
Code:
I'm not exactly sure what this looked like before I switched to dynamic URLs but it was similar to how the rest of them are.
After:
Code:
http://www.mysite.com/forums/album.php?albumid=230
Basically I'm going for Standard URLs however those would look for forum display.
Standard URLs:
showthread.php?t=12345
Basic Friendly URLs:
showthread.php?1234-Thread-Title
Advanced Friendly URLs:
showthread.php/1234-Thread-Title
Mod Rewrite Friendly URLs:
threads/1234-Thread-Title
Reply With Quote
  #12  
Old 08-19-2013, 08:00 AM
motorhaven motorhaven is offline
 
Join Date: Jul 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I didn't reply sooner, I was off for the weekend

So, you did not have VBSEO settings where the forum id was anywhere in the URL? For example:

Code:
http://www.example.com/forums/107-This-Is-A-Forum\.html
If not, then it requires a few more rules but it's very doable. For each forum add the following to .htaccess

Code:
RewriteRule ^my\-forumname/ http://www.mysite.com/forums/forumdisplay.php?f=45 [L,R=301]
On the right side of the rule, replace "45" with the forum id. On the left side of the rule, anywhere there is a period, dash, ( or ) in the forum name, you'll need to precede it with \

For example:
Code:
http://www.mysite.com/forums/my-forum-(name)-example.html would look like this:

RewriteRule ^my\-forum\-\(name\)\-example\.html http://www.mysite.com/forums/forumdisplay.php?f=45 [L,R=301]
Rules for members and albums are going to depend own how you had VBSEO setup. Best way to determine it is to look at your server log files and copy all "404" error files to a text file. If you have SSH shell access (command prompt) on the server here's how, assuming it uses standard log file format:

cat logfilename | grep -E '" 404 ' > errorexamples.txt

It will copy the error file entries to a text file named errorexamples.txt. Save that to your local computer and paste some examples here (or PM them to me). Replace your site name with something else before pasting it here.
Reply With Quote
Благодарность от:
RichieBoy67
  #13  
Old 08-19-2013, 08:05 AM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate the reply. I'll be in and out on errands today, but I did just want to confirm that I'm seeing this and I'll try to work on it. My threads are up with 301s but it looks like I'm taking quite a hit on visits and visitors from google since the initial ditch according to Google Analytics. Getting my rules up to speed ASAP should help. I appreciate it once again and I'll be back on soon!
Reply With Quote
  #14  
Old 10-28-2013, 08:26 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have posted this elsewhere and I am sorry for the duplicates but this seems to be the thread for this..

Trying to redirect old Vbseo urls to Vbulleton mod rewrite urls..


Old ones were like this

PHP Code:
http://musclemecca.com/f226/mr-olympia-2013-updates-info-thread-232742/index13.html#post3178011 
New ones are this

PHP Code:
http://musclemecca.com/threads/232742-***Mr-Olympia-2013***-Updates-and-info-thread! 
Does anyone have a real answer that is helpful to fixing this type of url to redirect?
trying to redirect urls.
Reply With Quote
  #15  
Old 10-28-2013, 10:49 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
I have posted this elsewhere and I am sorry for the duplicates but this seems to be the thread for this..

Trying to rtedirect old Vbseo urls to Vbulleton mod rewrite urls..


Old ones were like this

PHP Code:
http://musclemecca.com/f226/mr-olympia-2013-updates-info-thread-232742/index13.html#post3178011 
New ones are this

PHP Code:
http://musclemecca.com/threads/232742-***Mr-Olympia-2013***-Updates-and-info-thread! 
Does anyone have a real answer that is helpful to fixing this type of url to redirect?
trying to redirect urls.
https://vborg.vbsupport.ru/showthrea...30#post2456930
Reply With Quote
  #16  
Old 10-29-2013, 12:50 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are talking about viewing vbseo on the cache? Yeah,have tried that. I really did not want to remove but was having key issues due to their site being down.
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 12:35 PM.


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.04270 seconds
  • Memory Usage 2,244KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (9)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete