Jump to:

546 Posts in 2232 Topics by 237 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Hostgator?

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1287 Views
  • violetflowers
    Avatar
    Community Member
    1 Post

    Hostgator? Link to this post

    Has anyone used Hostgator when installing SS?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Hostgator? Link to this post

    Never used hostgator but what issues are you running into? most problems aren't limited to just one provider.

  • janorbur
    Avatar
    Community Member
    2 Posts

    Re: Hostgator? Link to this post

    I have a test site running on Hostgator and may move a production site there soon. Had a heck of a time getting mod_rewrite to work. We ended up with an .htaccess that looks like:

    ### SILVERSTRIPE START ###
    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
    </Files>

    <Files web.config>
       Order deny,allow
       Deny from all
    </Files>
    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)
    </IfModule>

    <IfModule mod_rewrite.c>
    DirectoryIndex index.php
    SetEnv HTTP_MOD_REWRITE On
    RewriteEngine On
       RewriteBase /

       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

    The big problem we had was that "index.php" would remain in the page paths. This was only fixed by changing the perms on the sapphire directory to 755 from the installed 775. I don't know if the 775 perms were from the original install or an artifact of having copied the directory structure from another server but it solved the problem.

  • Mrfixer
    Avatar
    Community Member
    49 Posts

    Re: Hostgator? Link to this post

    Yeah running a test site on hostgator isnt the most easiest of things due to how mod_rewrite is handled, i gave up trying to mod_rewrite when running a dev site on there, i contacted HG support and they just said go with what im doing, work on the site and once my clients ready to move from his old host company over to HG and his brand spanking website it would resolve itself when the DNS was switched, to aid that process though i had to have two .htaccess like this http://www.silverstripe.org/installing-silverstripe/show/16895 (see my post for the .htaccess codes and explanation), as soon as that was done everything went perfectly on the DNS switching.

    @janorbur will be starting a new SS dev on HG this coming tuesday so will give your .htaccess a whirl, regards

  • DanStephenson
    Avatar
    Community Member
    115 Posts

    Re: Hostgator? Link to this post

    I've hosted a few dozen SilverStripe sites with HostGator, and never had an issue.

    1287 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.