How to get rid of the index page?


#1

I’m totally new and need some advise over here

so here’s the problem

I have a domain e.g. "www.abc.com"
while i installed wordpress in "www.abc.com/home"
and phpBB in “www.abc.com/bbs

and now, when I go to "www.abc.com"
it shows the index page (or directory page)

what should I do if I want it to direct to “www.abc.com/home” when people goes to "www.abc.com"
i tried the redirect method, but it appears to have some looping issue

thanks


#2

Options -Indexes RewriteEngine on RewriteRule ^/?$ http://www.abc.com/home


#3

Redirect via the panel is the simplest.

If your having the redirect loop issue you have probably done something like set the www option in the panel to “add www” but then in your redirect, or where you set the URL in the wordpress dashboard, you have not included it.

For better answers give your real domain name instead of psuedo-domain names, so we can actually look at your specific site so see what’s happening. For example, if doing something creates a re-direct loop, there is probably one re-direct there already whether you realize it or not


#4

The directory:
www.hkgrads.com

Wordpress:
www.hkgrads.com/home

phpBB:
www.hkgrads.com/bbs
(somehow still suffering from the redirect loop, no idea why)


my settings:

Add WWW: Make http://hkgrads.com/ redirect to http://www.hkgrads.com/

Domain to redirect: hkgrads.com
Redirect to URL: http://www.hkgrads.com/home



#5

Hey there!

Bobocat actually gave you one .htaccess option you could use, if you wanted to hide your index page!

The panel redirect is not working because it can’t be used to direct a domain to a sub-directory of itself. The sub-directory can’t be accessed if the domain isn’t fully hosted on our end! So, you can use one of the .htaccess options ( http://wiki.dreamhost.com/Permanently_renaming_a_file_or_directory is another), or this PHP redirect option http://wiki.dreamhost.com/PHP_Redirect

Alternatively, you can choose to go into your WordPress settings and take /home out of the site URL and just move the files to /hkgrads.com out of /home. OR you can tell our panel to tell hkgrads.com to point at hkgrads.com/home as the main directory.

You have some options :slight_smile: