Welcome! Log In Create A New Profile

Advanced

rewrite rule untuk Website Static

Posted by zerocode 
rewrite rule untuk Website Static
June 11, 2011 05:24PM
Hallo Alls,

Mau tanya ini saya ada kendala untuk rewrite rule pada settingan website untuk vhost

RewriteEngine on
RewriteRule ^(.*)\.html$ index.php?pg=$1 [nc]
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^rssfeed.xml$ rssfeed.php [L]

Kalau kita pakai nginx gmana ya?

Terima Kasih
Re: rewrite rule untuk Website Static
June 19, 2011 04:03AM
rewrite ^/(.*)\.html$ /index.php?pg=$1;
rewrite ^/sitemap.xml$ /sitemap.php last;
rewrite ^/rssfeed.xml$ /rssfeed.php last;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready