Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite troubles
#1

[eluser]masterix[/eluser]
Hi there!

I have a problem with my htaccess file. If it looks like this:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Everything works fine. But I need to add some more rules beacause I migrate from old version of script. I add this:
Code:
RewriteRule ^biuro-podrozy/([^/]*)\/$ / [R=301,L]

And it shows me 404. Anybody could help me?

The problem is solved, I changed code to correct


Messages In This Thread
mod_rewrite troubles - by El Forum - 07-08-2008, 06:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB