Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-07-2012, 09:19 PM   PM User | #1
c1lonewolf
Regular Coder

 
Join Date: Sep 2002
Posts: 216
Thanks: 0
Thanked 11 Times in 11 Posts
c1lonewolf is an unknown quantity at this point
directory structuring problems

My host doesn't allow .htaccess file because they use a "shared" server, whatever that means. Also if you use some of their options thety scatter files all over the main directory. They also don't use cpanel which I'm used to.

I created a public_html subdir. in, i guess the root dir and moved everything not server related into that directory. Server related being phpmyadmin, mysql etc..

Anyway, I need the url to read :
http://www.mysite.com/index.php

But it reads:
http://www.mysite.com/
or
http://www.mysite.com/public_html/index.php

The later gets image files etc. from the public dir. But the others look for the items in the root dir. How do I fix this?
Sorry couldn't explain it better...any help is appreciated.
__________________
NO Limits!!
c1lonewolf is offline   Reply With Quote
Old 12-07-2012, 11:16 PM   PM User | #2
Thyrosis
New Coder

 
Join Date: Nov 2012
Posts: 72
Thanks: 4
Thanked 11 Times in 11 Posts
Thyrosis is on a distinguished road
To be fair the first line is a pretty bad explanation from your hosting provider. Shared hosting provider (which basically means you're not the only one using that server, there are multiple websites hosted on it) can provide .htaccess files too, it's just a matter of 'what do you allow'. But, each provider will have different set-ups. So if .htaccess files aren't allowed, they aren't allowed. Don't blame it on being a shared host though...

That being said, it's up to the hosting provider to answer your question really. Sounds to me they expect all website files to be uploaded directly in the root, rather than in a separate public_html folder.

I bet they have a FAQ page on the website explaining exactly what to upload where? Have a browse through that and see what pops up.
Thyrosis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 PM.


Advertisement
Log in to turn off these ads.