2011-07-01, 02:33 PM
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 :-
Please suggest me best way to handle this.
Thanks
UPDATE: 401 views and 0 reply
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