Welcome! Log In Create A New Profile

Advanced

Rewrite Rules

Tektonic Tektonic
April 22, 2012 04:28AM
Hello,

New to this list so pardon me if I am asking a very common question (I am sure it's a common one though). It is about Rewrite Rules. We have a Magento website which use to respond slowly while working with Apache, so we decided to switch to Nginx and can see the difference already. However, the problem is the Apache Rewrite Rules which are causing all the links to redirect to "404 Not Found".

I have already tried more than a few solutions from Google but none worked.

Attached is the Rewrite Rules section of my .htaccess. Please check and suggest me a solution.

Regards.<IfModule mod_rewrite.c>

## enable rewrites

Options +FollowSymLinks
RewriteEngine on

## you can put here your magento root folder path relative to web root

#RewriteBase /magento/


## workaround for HTTP authorization in CGI environment

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


## always send 404 on missing files in these folders

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/


## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l


## rewrite everything else to index.php

RewriteRule .* index.php [L]

</IfModule>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite Rules

Tektonic Tektonic April 22, 2012 04:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready