How do you link to other webpages in your webiste in different folders within "public_html"?

Category: How To

aaronmg
Asked:
2012-10-24 11:35 am EST

Hits: 259
I tried linking to a webpage within my site with
Test and it created an error. I have the folder "test" in my "public_html" and the file "index.htm" in the "test" folder. What is the coding I have to use?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

Scott
Staff
19,433 Points
2012-10-24 11:45 am EST
Hello aaronmg,

To link to the test folder, you would simply use the code http://yourdomain.com/test as the destination in your link. This would lead the visitor to the front page for the test folder.

I took a look at your folder setup and the only thing I can see that would cause a problem is that your folder is named "Test" and not "test". Linux servers are case sensitive, so if you name the folder "Test" you will always need to remember to capitalize the T when making any links. Microsoft servers do not make this distinction, however.

The standard practice is to make all folder names lowercase to avoid any confusion, but that is entirely up to you.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!