Legacy DB Tech Suggestion/Support - Static URLs

Status
Not open for further replies.

pwnage

New member
Dear Staff,

This is an example (luffyforums.com re-directs to my site now).
So here is a quick summary of my suggestion in action:

http://www.luffyforums.com/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490
- > Site works fine.

I then decide to install dragonbyte SEO (with suggestion).
Now this thread:
http://www.luffyforums.com/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490
appears like this after altering some settings:
http://www.luffyforums.com/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490


http://www.luffyforums.com/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
There is a log kept somewhere in the database, that ^this^ thread static url is the same thing as http://www.captainluffy.net/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490
If the name is changed, then the name change will also be kept a track of. A log in the database (due to the SEO plugin) keeps track of all static URLS linking them to the original thread when a 404 error appears, if the original thread still exists, it gets re-direct to that original working page instead of getting an error.

I.E:
http://www.luffyforums.com/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
http://www.luffyforums.com/f62/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
http://www.luffyforums.com/f63/poker-night-barn-2-game-discussion-thread-5391/index3.html#post130490
=
http://www.luffyforums.com/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490

Now lets say I decide to change domains to:
http://www.captainluffy.net/

In which case, I add in this coding to the old domains .htaccess file:
Code:
[PLAIN]RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.luffyforums.com$
RewriteRule (.*) http://www.captainluffy.net/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^luffyforums.com$
RewriteRule (.*) http://www.captainluffy.net/$1 [R=301,L][/PLAIN]

http://www.luffyforums.com/
automatically gets re-direct to http://www.captainluffy.net/

http://www.luffyforums.com/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
gets re-direct to
http://www.captainluffy.net/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490 -> Page not found. The SEO realises this and therefore re-directs the site again to:
http://www.captainluffy.net/showthread.php?t=5391&page=7&p=130490&viewfull=1#post13049 -> Page found.
If the thread still doesn't exist, then a 404 error will appear regardless. However, if it does exist, it will get re-directed to that working page.

Now I know the SEO didn't keep track of the domain change. Hence, to change all the stored log of static URLs. The site admin can manually important somewhere within the plugin settings, what the old domain
was and what the new domain is. Therefore all the tracked log static URLS, can change accordingly.
Example:
Enter all the address of your old domain(s). Make sure each domain is on a new line:
http://www.luffyforums.com
http://luffyforums.com
Enter the address of your current domain:
http://www.captainluffy.net

I.E:
1) http://www.luffyforums.com/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
2) http://www.luffyforums.com/f62/poker-night-barn-2-discussion-thread-53+91/index3.html#post130490
3) http://www.luffyforums.com/f61/poker-night-barn-2-game-discussion-thread-5391/index3.html#post130490
4) http://www.captainluffy.net/f61/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
5) http://www.captainluffy.net/f62/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
6) http://www.captainluffy.net/f63/poker-night-barn-2-discussion-thread-5391/index3.html#post130490
=
http://www.captainluffy.net/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490

So if you input any of the 6 URL strings from above, the site would read http://www.captainluffy.net/showthread.php?t=5391&page=7&p=130490&viewfull=1#post130490
if the input URL string doesn't work (404 error). This re-direct doesn't take place, if the input link loads the page (working fine), only when the page doesn't work, does this re-direct take place.

Note: The first 3 URLs in the I.E aren't necessarily needed (save space?). Only 4, 5 & 6 are. As the old domain .htaccess should re-direct 1 -> 4 or 2 -> 5 or 3 -> 6. If you want to exclude the use of the .htacess file from the old domain to be relied upon. Then keeping all static urls may be better. However, just globally replacing all the content of old site urls to new site urls content may be better for the site owner + would save space as it wouldn't require duplicating every single old domain static url to the new domain (each time a domain is changed, it would double the log). Hence, just 4, 5 & 6 are needed to be logged & the original thread. Logging shouldn't take up that much space then.

When logs are created:
- When a thread is created. The original & the static SEO URL are logged.
- Every change to the name of the thread- changes the static SEO URL.
- Every time the thread is moved to a new location- only if it changes the static SEO URL to something which hasn't been logged yet.
- There should be an option to toggle this particular feature on or off within the admin cp DB SEO settings.
- Possibly add a toggle button or something within the DB SEO settings, to log all the original + static urls currently within the site. If not, then whenever somebody upgrades their DB Tech SEO + when they active the feature, that is when the logging will begin.

Reasons why this suggestion will be useful:
- If the site owner changed SEO url setting style, the old SEO links posted would still work.
- If the site owner changed domains and no longer decide to use url changing SEO settings, the links posted on that forum would still work.
- I'm assuming something like this is how SEO work. Since if somebody changed the name of a thread, a link posted to the thread before the name change, always got re-directed to the latest SEO thread. Not sure if it used the same concept. But in either case, this/that concept may make things easy to implement.


I hope you understand my suggestion and can make it possible :)

Best regards,
Pwnage.
 
Last edited:
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Domain changes should be handled by .htaccess files. Additionally, changing a thread title (thus changing its URL) will have no impact whatsoever on the functionality of the modification, as the thread ID is what the modification is looking at. Old thread titles will seamlessly redirect to their new titles.
 
Domain changes should be handled by .htaccess files. Additionally, changing a thread title (thus changing its URL) will have no impact whatsoever on the functionality of the modification, as the thread ID is what the modification is looking at. Old thread titles will seamlessly redirect to their new titles.

Ah okay.
It's because I used VBSEO and not DBSEO before. Which is probably why the links didn't re-direct.

You can close this thread now :)
 
Last edited:
The Pro version of DBSEO has an importer from vBSEO, if you're trying to move from vBSEO to DBSEO :)
 
Status
Not open for further replies.
Back
Top