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: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready