0

I call my site this way locally:

http://localhost:80/mysite/de/layer1/layer2/module

In .htaccess I have:

RewriteEngine on

RewriteRule !^((css|js|images)/.*)$ index.php%{REQUEST_URI} [L, NE]

I try to rewrite that into:

http://localhost:80/mysite/index.php/de/layer1/layer2/module

Any idea what's wrong there?

openfrog
  • 235
  • 1
  • 4
  • 8

2 Answers2

0

First thing I can see is that the path should be mysite/index.php

Probably also have to remove the \mysite\ from your regex because as it is now your REQUEST_URI is going to include mysite\xxxxx

You should probably use a rewrite condition to skip css,images, etc and then rewrite like this

RewriteRule (.*) /mysite/index.php/$1
dubRun
  • 1,061
  • 2
  • 12
  • 22
0

If your server is throwing errors at you, you should look in the server log to see why. You can also enable logging of RewriteRule processing, see the docs.

larsks
  • 43,623
  • 14
  • 121
  • 180