Redirecting

Redirecting

Posted by: mudpark
Posted on: 2005-11-12 13:57:00

I setup a CMS system in the domain.com/potal folder.
With dreamhost's custom setup admin thing how can I foward the domain's main index to domain.com/portal

So somone will type in www.domain.com and go to www.domain.com/portal

Im too used to cPanel with all the other hosts...

Re: Redirecting

Posted by: Atropos7
Posted on: 2005-11-12 16:44:00

Upload an .htaccess file to the document root ("Web directory") with the following.

# Redirect http://example.com/ to http://example.com/portal/
RedirectMatch ^/$ http://example.com/portal/


cool Perl / MySQL / HTML CSS

Re: Redirecting

Posted by: franc23
Posted on: 2006-04-28 20:39:00

A simpler option would be to create an index file in your root directory and put the following code into it.

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">


Just replace the http://www.yourdomain.com/index.html with the intended new address.

Hope this helps,
Dilip

www.livecricketgames.com

Re: Redirecting

Posted by: pangea33
Posted on: 2006-04-29 02:28:00

Be careful using redirect techniques like this. Search engines are increasingly associating redirects with hijack attempts. Meta-refresh tags and redirects within .htaccess files both seem to have this sort of problem.

If you're interested in maximizing the search engine ranking of your sites, you're better off creating a simple splash page with a link to the CMS portion of your site. It's an additional click, but is fairly important for SEO and ranking.

I switched to this simplified method with my Joomla site here: http://teamshocker.com/ and it increased my rankings.

You can find more details here: http://www.loriswebs.com/hijacking_web_pages.html

BC Tech
Team Shocker

Tags: www domaindreamhostcms systemportalmain indexredirectingcpanelfowardhosts