Forum Moderators: phranque
I have access configuration like this:
<Directory "/home/user/public_html/">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*)$ index.php/$1 [L]
</Directory>
index.php is set to print out $_SERVER['PATH_INFO'].
... So if i access URI like this: URI/index.php/a/b/c, i get "a/b/c", if like this: URI/a/b/c (and this should work), i get:
The requested URL /index.php/a/b/c/ was not found on this server.
How i understand "a/b/c" is send to index.php, so RewriteRule works?
But why does it not work as expected (print out "a/b/c")...
[edited by: jdMorgan at 2:39 pm (utc) on Feb. 21, 2007]
[edit reason] Spelling. [/edit]
<Directory "/home/user/public_html/">
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRu[b]le ^/(.[/b]*)$ index.php/$1 [L]
</Directory>
Jim
thanks for your answer, jdMorgan.
But sadly it didnt solved my problem....
Configuration is located in access.conf file.
If i do as you sad:
<Directory "/home/user/public_html/">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^/(.*)$ index.php/$1 [L]
</Directory>
i get:
The requested URL /a/b/c/ was not found on this server.
If i ommit slashes:
<Directory "/home/user/public_html">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*)$ index.php/$1 [L]
</Directory>
i get:
The requested URL /index.php/a/b/c/ was not found on this server.