0

I need to have one entry point for my application - index.php. Before, i used to have such line of code:

RewriteRule ^(.*)$ /index.php [L]

Now, i need to force trailing slashes. I found out, that I can use such line:

RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]

But I want to know, how can I make it work both together.

ajreal
  • 46,720
  • 11
  • 89
  • 119

1 Answers1

0

try something like

RewriteRule ^(.*)$ /index.php/$1 [L]

or

RewriteRule ^(.*)$ http://%{HTTP_HOST}/index.php/$1/ [L]
Christoph Fink
  • 22,727
  • 9
  • 68
  • 113