Daft Question - Domain Name / Cpanel.

Associate
Joined
27 Jan 2005
Posts
830
Just quick and rather silly question regarding cpanel and way domain names are structured. I have a website we shall call it: mydomain.com

1) Does the images folder go into the public_html section of Cpanel?

2) My site has a Home, Services and Contact page. However, there will be pages that branch of from those so i.e services page will have serviceonoffer1...serviceonoffer2 and so on.

I would like the domain name to display this as www.mydomain.com/services/serviceonoffer1.html However, I don't want it to be www.mydomain.com/serviceonoffer1...I do want that services part in it.

How do I go about setting that and what is the technical term for that kinda of thing? Do I need to make folders in cpanel or just name that html page: /services/serviceonoffer1.html
 
htaccess would be the more complex, but also the neatest way to do it in terms of file structure. Basically for anything called /x/y.php and if x.php exists in public_html but /x/y.php doesn't exist, redirect to x.php?page=y. Then you can just transparently display or include the page you want :-)

If you use folders you should get something that looks like

/public_html/
contact.html
home.html or index.html
services.html (has links to /services/serviceonoffer1.html etc)
-/services/
-serviceonoffer1.html
-serviceonoffer2.html
 
htaccess would be the more complex, but also the neatest way to do it in terms of file structure. Basically for anything called /x/y.php and if x.php exists in public_html but /x/y.php doesn't exist, redirect to x.php?page=y. Then you can just transparently display or include the page you want :-)

If you use folders you should get something that looks like

/public_html/
contact.html
home.html or index.html
services.html (has links to /services/serviceonoffer1.html etc)
-/services/
-serviceonoffer1.html
-serviceonoffer2.html

Brilliant. Thanks for your help.
 
Back
Top Bottom