Welcome! Log In Create A New Profile


Rewrite Rules

Posted by Tektonic Tektonic 
Tektonic Tektonic
Rewrite Rules
April 22, 2012 10:30AM

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]

nginx mailing list
Sorry, only registered users may post in this forum.

Click here to login