Help with rewrite
July 30, 2009 05:56AM
Hello,

I need to hide the .php extensions of my pages.
I found some code that should work on apache, now I need help to get it working on nginx

RewriteEngine on
RewriteRule ^home$ home.php

I've tried with:

rewrite ^home$ home.php last;


but with no success.

Any idea?
Re: Help with rewrite
August 01, 2009 02:50AM
try

rewrite "^\home$" \home.php;
Re: Help with rewrite
August 01, 2009 02:51AM
oh ,sorry it's

rewrite "^/home$" /home.php;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
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