Thread: Domain Name Redirection Code
Results 1 to 3 of 3
Related
-
PHP Redirection Question Forum: PHP Forum
Replies: 1 -
What Redirection Code Forum: HTML Forum
Replies: 1 -
Redirection after form submission Forum: CGI Perl Forum
Replies: 3 -
Need help with Permanent Domain Redirection Forum: Search Engine Optimization - SEO - Forum
Replies: 2
-
12-15-2008, 11:28 PM #1
Domain Name Redirection Code
Hello House,
Please how can i redirect
mydomainname.com
to
mydomainname.com/blog?
so that any surfer that types the first URL will be automatically redirected to the 2nd URL.
Thank you all
Osecrown
-
12-16-2008, 02:49 AM #2
Re: Domain Name Redirection Code
You can actually do this in 3 ways:
- Meta Refresh on index page of mydomain.com:
HTML Code:<meta http-equiv="refresh" content="2;url=http://mydomain.com/blog">
- Server-side script (PHP). Place this on the index of domain.com
PHP Code:<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.domain.com/blog" );
?> - Use htaccess. For further reading:
http://www.isitebuild.com/301-redirect.htm
http://www.webconfs.com/how-to-redirect-a-webpage.php
Hope that helps.Checkout my porfolio.
Please click thebutton when a member helped you.
Take time to use Forum's Search function.
- Meta Refresh on index page of mydomain.com:
-
12-16-2008, 09:51 AM #3
Re: Domain Name Redirection Code
If your site is hosted with cPanel, you have the additional option of setting up a redirect through there.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum