vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   VBSEO Uninstall and Linked Images (https://vborg.vbsupport.ru/showthread.php?t=310379)

toon79 04-10-2014 09:30 AM

VBSEO Uninstall and Linked Images
 
I had a blog for quite some year which I used to post some of the more interesting on-topic stuff posted at the forum, as the images were linked there since the removal of VBSEO none of the images will appear.

http://illustration-design.blogspot....strations.html

Is there a rewrite anyone knows of that I could add to the htaccess file that would relink all these images, bearing in mind there's probable 1000's over the year, relinking each one would take a long time.

Is there a simpler solution anyone here knows about?

Thanks

final kaoss 04-13-2014 02:09 PM

If I recall, I believe dbseo has the ability to rewrite attachments as well which appears to be where these images are from. You should be able to do this with their free version.

toon79 04-14-2014 07:23 AM

Tried to install it and after the .htaccess change the whole site gives a 404 even the home page domain.

cellarius 04-14-2014 08:54 AM

What's the current link to the images in that blog post? Is the attachment id in that link vbseo generated?

toon79 04-14-2014 09:06 AM

The link is

estetica-design-forum.com/attachments/illustration-graphic-design/8394d1343305301-rubens-scarelli-nike-illustrations-dfe8307a9fec2b0aac7124108c69f9b8.jpg

--------------- Added [DATE]1397470069[/DATE] at [TIME]1397470069[/TIME] ---------------

Actual image is now located at:

estetica-design-forum.com/attachment.php?attachmentid=8395&d=1343305326

cellarius 04-14-2014 09:56 AM

Add this to the Rewrite Rules in your .htaccess:
Code:

RewriteRule ^attachments/(.*)/([0-9]*)d([0-9]*)(.*)$ http://www.estetica-design-forum.com/attachment.php?attachmentid=$2&d=$3 [R=301,L]

toon79 04-14-2014 10:20 AM

Thanks for the fix that's great. I don't suppose you know how to get the members to rewrite?

They were estetica-design-forum.com/members/craig7777.html

But now they are now:

estetica-design-forum.com/member.php?16270-Craig7777

cellarius 04-14-2014 10:36 AM

Since you chose not to show the userid in the vBSEO url, that's not easily done. All you have to go on in the URL is the Username. You'd need to write a php script to query the database for the userid to go with the username. Then have the .htaccess redirect to that file, get the userid from the database, and then redirect to the correct URL.

toon79 04-14-2014 10:46 AM

Quote:

Originally Posted by cellarius (Post 2493093)
Since you chose not to show the userid in the vBSEO url, that's not easily done. All you have to go on in the URL is the Username. You'd need to write a php script to query the database for the userid to go with the username. Then have the .htaccess redirect to that file, get the userid from the database, and then redirect to the correct URL.

Ah thanks, I understand a little better now.


All times are GMT. The time now is 03:56 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.06171 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete