Welcome Guest, Not a member yet? Register   Sign In
RewriteRule problem
#1

[eluser]Mitja B.[/eluser]
This is my URL: http://www.dvorec-jeruzalem.si/sl/dodatna

It works on my localhost but not on server. If i try: http://www.dvorec-jeruzalem.si/index.php/sl/dodatna then works normal.

This is my htaccess:

Try boath ways:

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

but none of the rules works on server.

<IfModule mod_rewrite.c>
Options +FollowSymLinks

RewriteEngine On
RewriteBase /


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ $1.php
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^([^/]+)/(.*)$ /index.php/$1/$2 [L]
#RewriteRule ^(.*)$ $1
</IfModule>

Any ideas?
#2

[eluser]Mitja B.[/eluser]
found solution:

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

[eluser]n0xie[/eluser]
It took you 3 minutes to find the answer to your own question? :-P
#4

[eluser]Mitja B.[/eluser]
i know, stupid i try everything instead this...




Theme © iAndrew 2016 - Forum software by © MyBB