I am a total newbie to Apache. I need to do this only for this weekend during an upgrade from old system to new system
We have different URLs
http://domain.name/xxx (xxx varies to any length and words - it can be /home, /login, /home/daily, /daily/report, etc).
How do i redirect all those to one site.
For example
http://domain.name --> needs to redirect to
https://new.domain.name
http://domain.name/login --> needs to redirect to
https://new.domain.name
http://domain.name/home/daily/ --> needs to redirect to
https://new.domain.name
http://domain.name/daily/report/ --> needs to redirect to
https://new.domain.name
and so on
Using DNS entry for IP re-direct the first one works fine
http://domain.name --> https:/new.domain.name
But for all others - I tried updating the httpd.conf with
RedirectMatch permanent /.*
https://new.domain.name/
or
RedirectMatch permanent /.*$
https://new.domain.name/
or
RedirectMatch permanent /(.*)$
https://new.domain.name/
But all the above solution one going into infinite loop but short of using each and every possible URL to redirect to the same URL - how can i use the regular expression to point it to one URL (
https://new.domain.name/) for entire old site of
http://domain.name/*
I read online to use mode_rewite and mod_alias and .htaccess..buit not comfortable using that (unless there is no other solution). Looking for a quick solution for this weekend only. Is it possible to do this using Redirect or RedirectMatch ??