question_ redirecting unsuccessful requests with htaccess
Posted: Wed Feb 27, 2008 2:24 pm
I am in the process of making major changes in a website. A lot of the content will be taken away, but i stll want to get all the visitors from google.
I have a forum in http://mysite.com/forum
But now I am taking it away and I want to redirect all those users to:
http://mysite.com/news.htm
would something like this be ok?
^/forum/(.*)(.htm|/|.php) /news.htm #.htm .php and / are the only possibilities for my forum's urls.
Also, don't know which chars to escape in htaccess regex...
Like... is this necessary?...
^/forum/(.*)(\.htm|\/|\.php) /news.htm
What about this?
^/forum/(.*) /news.htm
Is it dangerous in any way? why? how?
thanks in advance
I have a forum in http://mysite.com/forum
But now I am taking it away and I want to redirect all those users to:
http://mysite.com/news.htm
would something like this be ok?
^/forum/(.*)(.htm|/|.php) /news.htm #.htm .php and / are the only possibilities for my forum's urls.
Also, don't know which chars to escape in htaccess regex...
Like... is this necessary?...
^/forum/(.*)(\.htm|\/|\.php) /news.htm
What about this?
^/forum/(.*) /news.htm
Is it dangerous in any way? why? how?
thanks in advance