Reducing a URL for parked pages

Using a single web hosting account to host multiple sites

Reducing a URL for parked pages

Postby zorag » Wed Mar 12, 2008 7:30 pm

Hi

I have a parking/landing template which contains index.php, blogs.php, videos.php, .htaccess and a handful of other files which are all located in the following directory:

http://mydomain.com/members/3/domain.name/

What I'd like to do is cut down the URL so that it handles the files within but just displays:

http://domain.name/

Is this possible?
zorag
 
Posts: 3
Joined: Wed Mar 12, 2008 7:16 pm

Postby richardk » Thu Mar 13, 2008 12:59 pm

What happens when you currently go to domain.name? Do you get redirected? Can you stop that redirect? What directory on your server does the domain go to if you stop the redirect?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby zorag » Thu Mar 13, 2008 2:00 pm

Hi Richard

There's no redirect, everything happens at:

http://mydomain.com/members/3/domain.name/

This picks up index.php and the template menu links like:

http://mydomain.com/members/3/domain.name/blogs.php etc..

I can automatically place a .htaccess file in each domain.name directory with the software I'm using so I'm wondering if it's possible to cut them down with .htaccess to just:

http://domain.name/

Thanks
zorag
 
Posts: 3
Joined: Wed Mar 12, 2008 7:16 pm

Postby richardk » Thu Mar 13, 2008 2:10 pm

What currently happens when you go to domain.name? Have you registered these domains?

You need to own the domains and they need to be configured (DNS and Apache) to go to either /, /members , /members/3 or /members/3/domain.name on the server. Then mod_rewrite can remove any unwanted parts of the URL.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby zorag » Thu Mar 13, 2008 2:52 pm

Richard

Sorry I'm with you now, I'm thinking of URL forwarding to the directory and that's why I was thinking of placing a .htaccess file there to cut down the address - if possible.

The majority of domains are owned by my members, I'm in the process of developing landing pages/templates so that I can offer them additional revenue facilities.

Thanks
zorag
 
Posts: 3
Joined: Wed Mar 12, 2008 7:16 pm

Postby richardk » Sun Mar 16, 2008 11:54 am

I could do with some advice because I'm not too sure which way to go with this project. I understand that a dedicated server "or virtual server" is probably required/preferred so that a DNS can be incorporated. Do you think it's possible to route domains parked via the servers DNS directly to the location of the parked pages on the fly?

You want to dynamically set the document root for the domains? You can use mod_vhost_alias to change the document root of a <VirtualHost> on the fly. You will need access to the httpd.conf file to set it up.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 16 guests

cron