Redirecting


#1

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…


#2

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


#3

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

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

Hope this helps,
Dilip

www.livecricketgames.com


#4

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