Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Friendly url not-working, .htaccess config ? (Infomaniak hosting)

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1 2
Go to End
Author Topic: 9265 Views
  • Daoro
    Avatar
    Community Member
    5 Posts

    Re: Friendly url not-working, .htaccess config ? (Infomaniak hosting) Link to this post

    First, thanks for your support
    It's still not working, I can't complete the installation (same error message as in my first post).

    But it's quite normal I suppose.
    What I want is Silverstripe to be installed in the my /ss folder for now, because I want to test if Silverstripe can be installed and setup without having to close or change the site for now. So even if it worked setting the rewrite base to / is not what I want.
    Concerning moving the installation outside the root folder and / or change the httpd.conf, it's not possible. I'm using a shared hosting and can't do that :/

    And I can't access anything using unrewritten URLs

  • FungshuiElephant
    Avatar
    Community Member
    57 Posts

    Re: Friendly url not-working, .htaccess config ? (Infomaniak hosting) Link to this post

    What I want is Silverstripe to be installed in the my /ss folder for now, because I want to test if Silverstripe can be installed and setup without having to close or change the site for now.
    Your original .htaccess looks right for this.

    Time to look elsewhere. You say in your original post:
    I renamed every HTTPResponse instance to something else successfully, preventing conflit with the php config of my host.
    How did you do this?
    Did you rename HTTPResponse.php to refelect your new name?

  • Daoro
    Avatar
    Community Member
    5 Posts

    Re: Friendly url not-working, .htaccess config ? (Infomaniak hosting) Link to this post

    A global "find and replace" to change all the strings + renaming the file. But I suppose this part went fine.

  • datswicked
    Avatar
    Community Member
    15 Posts

    Re: Friendly url not-working, .htaccess config ? (Infomaniak hosting) Link to this post

    I Know this is an old post, but had htaccess not work on a server i knew it was active on and i solved like this.

    ...
    #<IfModule mod_rewrite.c>
       SetEnv HTTP_MOD_REWRITE On
       RewriteEngine On
       RewriteBase /

       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_URI} !\.php$
       RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
    #</IfModule>

    basically commenting out the <ifModule> and closing </ifModule>

    was ready to tear my hair out till i tried that and BINGO, worked like a charm..
    on Linus, PHP 5.3.18, Silverstripe 3.0.5

  • Benwitz
    Avatar
    Community Member
    7 Posts

    Re: Friendly url not-working, .htaccess config ? (Infomaniak hosting) Link to this post

    The following may just be a warning, sometimes a warning in error as mod_rewrite is active. If you get this when installing try accessing your root page directly "www.mysite.com" and chances are your install was successful regardless of the warning.

    "Friendly URLs are not working. This is most likely because mod_rewrite isn't configured correctly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you: "

    * mod_rewrite is enabled
    * AllowOverride All is set for your directory

    9265 Views
Page: 1 2
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.