MyBB Community Forums

Full Version: mod_rewrite rule help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I was running my forum @ http://mydomain.com/forum
and now I want to turn it into http://mydomain.com

I am running lighttpd engine

so I want to redirect all my old post of

1). http://mydomain.com/forum/showthread....
2). http://mydomain.com/forum/forumdisplay.php...
and so on to....


1). http://mydomain.com/showthread...
2). http://mydomain.com/forumdisplay.php.....
and so on..

So What should be the appropriate mod_rewrite rule to apply. I run lighttpd engine so i need to edit lighttpd.conf file..
and this is what i probably think is :-

"^/forum/(.*)" => "http://www.mydomain.com/$1",
"^/forum/$1?$2" => "http://www.mydomain.com/$1?$2",
"^/forum/$1?$2&$3" => "http://www.mydomain.com/$1?$2&$3",

Please suggest me best way to handle this.

Thanks


UPDATE: 401 views and 0 reply Sad