Forum Moderators: phranque
Many of my redirections point to the same url:
Redirect permanent /index.htm [mynewsite.com...]
Redirect permanent /anotherpage.htm [mynewsite.com...]
is there someting like an OR operator (Redirect permanent /index.htm OR anotherpage.htm [mynewsite.com...]
My problem is I moved domain and direct access to files that are not anymore causes 404 errors.
Many users access directly www.myoldsite.com/bla.htm
that bla.htm perhaps is not anymore on my newsite or it has an equivalent file.
I have a lots of redirects lines...
Can I just put
Redirect Permanent www.myoldsite.com/bla.htm OR www.myoldsite.com/bla2.htm www.mynewsite.com
?
Redirecting just / will catch any path?
In the other hand I have lots of gone files but that are indexed and well ranked by search engines so perhaps putting redirects of those to similar content files in my newsite be a way to mantain users on mysite...
If they get a 404 page they probably will go away....
Redirect permanant /FreeBSD http_//example.com/projects/FreeBSD
More specific links are above less specific links.
If a person goes to http_//example.com/FreeBSD/index.html, they'll be redirected to http_//example.com/projects/FreeBSD/index.html.
It's a variant of the Redirect directive. See [httpd.apache.org...]
> Can I just put Redirect Permanent www.myoldsite.com/bla.htm OR www.myoldsite.com/bla2.htm www.mynewsite.com?
No.
> Redirecting just / will catch any path?
Yes.
Jim