Can you point the domain to a subfolder?


#1

Hi all.

I was wondering if I could point www.mydomain.com to a specific subfolder. Like I’d like visitors to www.mydomain.com to actually be redirected to www.mydomain.com/folder/ without having to actually redirect them with like java or something. Does that make sense?

any help or suggestions are appreciated. thanks…


#2

In your Fully Hosted Domain setup, you can specify it to use any folder you choose. Depending on your setup, this may or may not work due to pathnames in your configuration files.

Another option is to use a Rewrite so the subfolder is transparent. Someone good with mod_rewrite might have a .htaccess setup handy and can post the syntax.

-Scott


#3

What do you want your users to see in the address bar? Do you want them to see http://www.yourdomain.tld/ or http://www.yourdomain.tld/folder/ ?

What are [color=#CC0000]50DISK50[/color], [color=#CC0000]3DOM50[/color], and [color=#CC0000]1IP1DOM50[/color]?
They’re Dreamhost coupons!


#4

I wanted users to be able to go to both www.domain.tid and www.domain.tid/folder, and have them be the same. if that’s possible. If not, then I want users to see www.domain.tid/folder

thanks for the help


#5

Do you have a simple static site, some php you wrote yourself, or a full-fledged web application like Wordpress running there?

(Apologies for not asking both questions at the same time)

Use the [color=#CC0000]3DOM50[/color] promo code for 3 extra lifetime domains and $50 off
More Dreamhost coupons here!


#6

no problem… it does indeed happen to be wordpress running in that subfolder.


#7

(Oh no! He’s got another question!)

Is that installation of Wordpress from a one-click install or did you do the install yourself? If you did a one-click install, do you want to keep it a one-click install?

Use the [color=#CC0000]3DOM50[/color] promo code for 3 extra lifetime domains and $50 off
More Dreamhost coupons here!


#8

lensman, thanks for sticking through this and helping me!

install was a one-click install. I probably want to keep it that way as I’m not to keen on having service interrupted right now while i sort through installing wordpress. I should mention that while I was hoping to have www.mydomain.com point to the subfolder right now. Eventually I would like to change it back such that it operates “normally”.

thanks again for the help.


#9

It’s going to be somewhat difficult to both redirect or point your domain to a subdirectory or another directory while you get wordpress sorted out on that domain while keeping one-click status for that domain.

What do you think you need to “sort out” about wordpress on your domain? Is it content and organization? Plugins? The theme?

First, create a subdomain and install Wordpress there. Use that subdomain to practice getting everything right for how you want to configure Wordpress. You will be able to export all content you set up and import it into your final Wordpress installation on your domain.

Second, decide whether it’s more important to keep one click status and take a small amount of downtime or to have no downtime and to lose one-click status.

If you want to keep one click status, you’d get everything going on your alternate subdomain, then quickly do the one-click install, setup and import of content into your main domain very quickly in the “off hours”.

If you want to have zero downtime, again, you’d get everything going on your alternate subdomain, change the configuration of Wordpress on the subdomain to make it think it’s going to be the main domain, then change the web directory of the main domain to be the directory you installed wordpress into.

Use the [color=#CC0000]3DOM50[/color] promo code for 3 extra lifetime domains and $50 off
More Dreamhost coupons here!


#10

You could whack an index.php file in your domain root directory:

<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.domain.com/folder/" ); ?>