![]() |
redirect invalid forum and invalid thread to home page or index? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html) +------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html) +------ Thread: redirect invalid forum and invalid thread to home page or index? (/thread-153384.html) Pages:
1
2
|
redirect invalid forum and invalid thread to home page or index? - marcus123 - 2014-05-01 How do I redirect invalid forum and invalid thread to my home page or index page? RE: redirect invalid forum and invalid thread to home page or index? - marcus123 - 2014-05-08 Hi really need this one anyone? How to make this work?
RE: redirect invalid forum and invalid thread to home page or index? - DrXotick - 2014-05-10 This sounds handy. Wouldn't it better be done through .htaccess though? RE: redirect invalid forum and invalid thread to home page or index? - marcus123 - 2014-05-10 (2014-05-10, 06:02 AM)DrXotick Wrote: This sounds handy. Wouldn't it better be done through .htaccess though? Hi thanks very much for your reply I though about it but don't know how to do it? My SEO Plugin handles all errors except these I mean 404..... How can I redirect invalid thread/forum using .htaccess? RE: redirect invalid forum and invalid thread to home page or index? - Leefish - 2014-05-10 Maybe look through this old "bug" report : http://dev.mybb.com/issues/1622 RE: redirect invalid forum and invalid thread to home page or index? - DrXotick - 2014-05-11 Try this in your .htaccess. I would put it above any Google SEO code, but below rewrite engine on.
If that doesn't work out, or optionally... Make your custom 404.html as: Content is the # of seconds before it will redirect. Set to 0 to make it immediate.(obviously change example.com to your domain name.) RE: redirect invalid forum and invalid thread to home page or index? - marcus123 - 2014-05-11 @DrXotick thanks very much man. @Leefish great idea thanks a lot. I will replace all :
With:
Just nailed it thanks ![]() P.S. Do you think I can create a plugin for this without modifying core files? RE: redirect invalid forum and invalid thread to home page or index? - DrXotick - 2014-05-11 Just curious. Why would you create a plugin when you can put a single line in .htaccess Ah. nevermind. I see you only want to target certain usergroups. Cheers. RE: redirect invalid forum and invalid thread to home page or index? - marcus123 - 2014-05-12 (2014-05-11, 04:23 PM)DrXotick Wrote: Just curious. Why would you create a plugin when you can put a single line in .htaccess Hi I only want to redirect invalid forum, thread, post this is not 404! RE: redirect invalid forum and invalid thread to home page or index? - DrXotick - 2014-05-12 Didn't your mom ever teach you not to yell at strangers? |