rbudj
asked on
How to redirect all pages in a domain to one single page?
I have a website hosted with third party. I have cpanel. I want all pages to redirect to one single page. This page can either be on the same domain or a different domain. How can I do this?
DNS redirect can do this same
ASKER
this website has more than a hundred pages. I do not wish place code in each page.
Hi rbudj,
Under cPanel > Domains you can "manage redirects". This can be used for a domain or a specific address.
Ciao
Under cPanel > Domains you can "manage redirects". This can be used for a domain or a specific address.
Ciao
ASKER
i've been trying the redirect in cpanel. It will only redirect the one page. It will not redirect all files in the directory. For example... I type in mydomain.com/ to forward to anotherdomain.com/forsale. php. If you visit a page such as mydomain.com/hello.html... it does not redirect. Only mydomain.com/index.html will redirect.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and contains some code like below in your error page
Open in new window