Jump to:

4935 Posts in 16161 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SS3 friendly Urls -> Provider 1und1.de

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

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

Page: 1
Go to End
Author Topic: 706 Views
  • dh_berger
    Avatar
    Community Member
    1 Post

    SS3 friendly Urls -> Provider 1und1.de Link to this post

    hi,
    Ich have a problem with the friendly urls on my domain.
    currently is it:

    http://stage.XXXX.de/index.php/contact-us/

    but i need:

    http://stage.XXXX.de/contact-us/

    .htacces:

    ### 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(/|$)
       RedirectMatch 403 /vendor(/|$)
       RedirectMatch 403 /composer\.(json|lock)
    </IfModule>

    <IfModule mod_rewrite.c>
       SetEnv HTTP_MOD_REWRITE On
       
       AddType x-mapp-php6 .php
       AddHandler x-mapp-php6 .php
       
       RewriteBase /
          
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_URI} !\.php$
       RewriteRule .* framework/*.php?url=%1 [QSA]

       RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule . %1/install.php? [R,L]

    </IfModule>
    ### SILVERSTRIPE END ###

    php.ini:

    memory_limit = 100M;
    upload_max_filesize = 40M;
    max_execution_time = 50000;
    max_input_vars = 5000;
    safe_mode = Off;
    magic_quotes_gpc = Off;
    date.timezone = "Europe/Berlin";
    mysql.default_socket = /tmp/mysql5.sock;
    mysqli.default_socket = /tmp/mysql5.sock;

    Can you help me?

    best regards
    dh_berger

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: SS3 friendly Urls -> Provider 1und1.de Link to this post

    Hallo dh_berger
    I know this is an old post but in case you're still having issues with this.
    First thing make sure it's not .htacces but .htaccess I guess thats probably a typo.
    Secondly your apache install needs to have mod_rewrite enabled.

    To enable it you'll need root access to the server in order to run this is a terminal
    a2enmod rewrite
    service apache2 restart

    706 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.