MyBB Community Forums

Full Version: .htaccess 404 redirection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I was just wondering if this was possible.

I moved my forums (except a portal page renamed as index.php) from nlarcade.com to nlarcade.com/forum. By doing that, my nlarcade.com/admin folder, for example, doesn't work. Would there be a way to redirect nlarcade.com/deadpage to nlarcade.com/forum/deadpage (if dead), then if nlarcade.com/forum/deadpage is a dead link, then display a 404 error?
You could just put a placeholder index.html with a meta redirection in each folder with the time set to 0 so it happens instantly...
Well, at the nlarcade.com root, the portal.php file is there (as index.php).
In fact, here's some links for you:

Plain HTTP Meta-REFRESH redirection
http://www.web-source.net/html_redirect.htm

Permanent 301 Status redirection via various scripting methods, also includes mod_rewrite rules you can use in .htaccess
http://www.somacon.com/p145.php
and
http://www.webconfs.com/how-to-redirect-a-webpage.php
Seems alright. The HTTP meta refresh isn't useful in my case. I know of that though. Would this be how I do it?

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.nlarcade.com/forum/$1 [R=301,L] 

Seems like it's going to redirect me, even with the index.php file there.
You said other folders, not your main one where you have an index.php.

However, you should be writing a specific rule for every single thing you want redirected.
Alright. That's fine then. Hope Google forgives me.