MyBB Community Forums

Full Version: htaccess halp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, I am using the domain AceFuse. What I am trying to do is if a user we're to go to "web.acefuse.com" it would show forum id "2". So far pyridine has got me thus far. I created a sub domain called "web.acefuse.com" and set the path to /public_html/acefuse.com/web/ and created a .htaccess file in that folder. I inserted this code (credit to pyridine Big Grin)
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule (.*) http://www.acefuse.com/forumdisplay.php?fid=2 [L]

But if you visit "web.acefuse.com" it will redirect to "http://www.acefuse.com/forumdisplay.php?fid=2" when instead I just want it to display the forum.

Any help is appreciated, thanks! Smile
It's redirecting even though I didn't append R, which is weird.
I'd have advised the exact same rewrite. It seems weird that it doesn't work though.
Did you mean fid=1? That seems to be your main forum page.
It's probably because you specified the full http url instead of just the file
(2011-10-24, 04:43 PM)frostschutz Wrote: [ -> ]It's probably because you specified the full http url instead of just the file

The htaccess file is on a sub domain, though. So how would it be possible to not use the full url?
That's fine as long as the paths match according to where the .htaccess is. Which I would assume is the root directory for the subdomain.
web.acefuse.com = ./acefuse/web
acefuse.com = ./acefuse

Would ../ work? I haven't tried it before.
I'm trying to figure why you want to do this now Toungue. Because, I can't really think of simple way of doing it. I mean MyBB is just going to take them to the main domain once they click a link anyway.

It's seems like to much work for so little gain. I'm sure it's possible but I can't wrap my brain around it.

Because a rewrite is supposed to change the url not the page. What you want to do is change the page and not the url. So I think rewrite isn't what you're looking for. You could always use an iframe(I know it's a horrible suggestion but can't think of anything for what you want).
I don't want it, Jason does, he just came to me for help and I'd like to be able to solve it. Although, to be honest, I agree with you. There'd be some more problems that would eventually crop up, ultimately making it more trouble than it's worth.