4579 Posts in 1388 Topics by 1378 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1895 Views |
-
how do you remove /index.php/ from the urls?

5 May 2010 at 5:38am
Hi all,
I am using SS 2.4 r2 and just installed it with ease. I have this .htaccess file with it. What do I do to make friendly urls without the index.php in the url?
John### 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><IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ### -
Re: how do you remove /index.php/ from the urls?

5 May 2010 at 6:40am
handtyping the url without /index.php/ fixed it and its all working now.
What can I put in the .htaccess file to auto redirect it in case I have a rouge link out there?
John
| 1895 Views | ||
|
Page:
1
|
Go to Top |

