Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

"index.php/" problem.


Reply


377 Views

Avatar
Lukey

Community Member, 1 Post

5 August 2013 at 10:16am

Edited: 05/08/2013 10:18am

I've searched everywhere for a solution and have searched these forms, too. None of the solutions seem to work for me :(

I've installed SS on an XAMPP server in the folder: "xavient/silverstripe/" so the full URL is:

"localhost/xavient/silverstripe"

or

"127.0.0.1/xavient/silverstripe"

initially, the index.php/ doesn't show. but as soon as I click one of the menu items, it appears like so: "index.php/about-us/"

here are the contents of my .htaccess file.

---

### 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>

# This denies access to all yml files, since developers might include sensitive
# information in them. See the docs for work-arounds to serve some yaml files
<Files *.yml>
   Order allow,deny
   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
   RewriteEngine On
   RewriteBase '/xavient/silverstripe/'

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

Any suggestions? D;