Welcome! Log In Create A New Profile


Help with rewrite

Posted by tomas 
Help with rewrite
July 30, 2009 05:56AM

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

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: 156
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