How do I redirect invalid forum and invalid thread to my home page or index page?
redirect invalid forum and invalid thread to home page or index?
|
Hi really need this one anyone?
How to make this work?
2014-05-10, 06:02 AM
This sounds handy. Wouldn't it better be done through .htaccess though?
2014-05-10, 01:00 PM
(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?
2014-05-10, 01:20 PM
Random Fish and Sims Maniac
MY PLUGINS Help MyBBSupport help you - remember to mark your threads as solved
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.)
@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?
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.
2014-05-12, 03:20 PM
2014-05-12, 05:18 PM
Didn't your mom ever teach you not to yell at strangers?
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)