Welcome! Log In Create A New Profile

Advanced

Simple url rule... (but not for me)

Posted by atipico 
Simple url rule... (but not for me)
May 02, 2011 08:40PM
All html files are in the folder "htm" in the path: domain.com/htm

How can I make Nginx serve?
domain.com/index.htm
or
domain.com/page.htm

Detail: For SEO reasons, I don't link the url make a 301 redirect or make the site root the folder "htm" (bacause I have some php called by ajax inside the html file, and the php files are all inside the path: domain.com/php).

I tryed:
rewrite /*.htm /htm/$1.htm;

But...
Thanks,
Rogerio.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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