vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Ditching Vbseo for Friendly URLs (https://vborg.vbsupport.ru/showthread.php?t=301248)

Akyeame Kwame 08-16-2013 06:21 PM

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

motorhaven 08-19-2013 08:00 AM

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.

Akyeame Kwame 08-19-2013 08:05 AM

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!

RichieBoy67 10-28-2013 08:26 PM

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.

TheLastSuperman 10-28-2013 10:49 PM

Quote:

Originally Posted by RichieBoy67 (Post 2456885)
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 :cool:

RichieBoy67 10-29-2013 12:50 AM

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.


All times are GMT. The time now is 12:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01033 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete