Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    462
    Thanks
    0
    Thanked 20 Times in 20 Posts

    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!! DHCreationStation.com
    ------------------------------------------------------------
    For projects using MediaTypes (MIMETypes) visit E-BAM.net -(updated weekly)

    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    Regular Coder
    Join Date
    Nov 2012
    Posts
    115
    Thanks
    7
    Thanked 12 Times in 12 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •