Welcome! Log In Create A New Profile

Advanced

How covert this rules?

Posted by lumb 
How covert this rules?
May 20, 2013 01:56AM
How covert this rules? Autoconvert services can't help

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^([^\.]+)$
RewriteRule ^(.*[^/0-9]+)$ %{REQUEST_URI}/ [R,L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)$ index.php/$1 [QSA]


RewriteRule cart/add/?$ /templates/main/php/cart_add.php [QSA,L]
RewriteRule cart/edit/?$ /templates/main/php/cart_edit.php [QSA,L]
RewriteRule cart/delete/?$ /templates/main/php/cart_delete.php [QSA,L]

RewriteRule catalog/podbor/?$ /catalog/category0/ [QSA,L]


RewriteRule logout/?$ /templates/main/php/logout.php [QSA,L]

<FilesMatch "\.(inc)$">
Order Deny,Allow
Deny from all
</FilesMatch>

Options -Indexes
Re: How covert this rules?
May 20, 2013 11:16PM
I make this but it's don't work 404
location / {
if (!-e $request_filename){
rewrite ^/([^.]+[^/])$ $request_uri/ permanent;
rewrite ^/(.*)$ /index.php/$1 break;
}
}
what's wrong?



Edited 1 time(s). Last edit at 05/20/2013 11:17PM by lumb.
Re: How covert this rules?
May 21, 2013 04:56AM
I have the same problem. Below is what im trying to convert.

Many Thanks for your help in advance.

<IfModule mod_rewrite.c>

# Enable Rewrite Engine
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /redirect.php?request=$1 [L,QSA]
</IfModule>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready