Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Duken Posted March 11, 2018 Posted March 11, 2018 Damn, i did something stupid. I merged an old topic to the new one..... Wrong way this old topic is very populair on google. Now the topic is gone and i wish i could undo this. I think you cant undo a merge. So i need to redirect the old URL to the new topic id / URL. How can i do this?! Hope there is someone with a Solution..... Regards!
Duken Posted March 12, 2018 Author Posted March 12, 2018 Is there a good way to do a 301 with a .htaccess file for one forum URL? Or can this break more?
Duken Posted March 12, 2018 Author Posted March 12, 2018 Well it looks good . I could find that @opentype ? For visitors: My new .htaccess file (bold) is added. I added two because of a rename of the topic. <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /forums/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) /forums/404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /forums/index.php [L]redirect 301 /forums/topic/35332-formule-1-op-pc-kijken-via-streams-zonder-ziggo/ /forums/topic/36172-formule-1-2018-kijken-via-live-streams-zonder-ziggo/ redirect 301 /forums/topic/35332-formule-1-2017-op-pc-kijken-via-streams-zonder-ziggo/ /forums/topic/36172-formule-1-2018-kijken-via-live-streams-zonder-ziggo/ </IfModule>
PPlanet Posted March 17, 2018 Posted March 17, 2018 I know this may be begging for trouble because the redirect solution is simple; however I ask, is it possible to change the topic ID provided you know both old and new IDs?
Duken Posted March 17, 2018 Author Posted March 17, 2018 No i can't change the topic ID. How can i do this?
PPlanet Posted March 17, 2018 Posted March 17, 2018 No, I wasn't suggesting it to you, sorry for hijacking your thread but today a mod on my site merged two threads the wrong way, just like you did. I also applied the redirection solution (it's not the first time this happens to us), but in the back of my mind I was thinking that it would be nice if we could simply change the topic ID (via query or other way). So, I'm also asking if it's possible at all.
Nathan Explosion Posted March 17, 2018 Posted March 17, 2018 54 minutes ago, PPlanet said: I know this may be begging for trouble Yup. You, again, would need to get hacky with the database.....and I suggest you don't in this situation.
PPlanet Posted March 17, 2018 Posted March 17, 2018 I suspected it wasn't a good idea. Thanks for the heads up anyway.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.