Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (1 vote)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How do I use search engine friendly (SEO) url's for Shopping Cart with nginx?

Add the following to your nginx.conf file in your "location / {" section

if (-f $request_filename) {
        break;
}
if (-d $request_filename) {
       break;
}
rewrite . /index.php;

eg:

 location / {
            root   /var/www;
            index index.php index.html index.htm;
                        if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
                            expires max;
                            break;
                        }

                        if (-f $request_filename) {
                                break;
                        }
                        if (-d $request_filename) {
                                break;
                        }
                        rewrite . /index.php;
        }
 


Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software