how to change apache .htaccess to nginx rewrite
April 04, 2010 12:13AM
how to change apache .htaccess to nginx rewrite

[u]apache .htaccess[/u]

ExpiresActive On
ExpiresByType image/gif "access 1 week"
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType text/js "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType application/x-javascript "access 1 week"

ErrorDocument 404 http://www.domain.com/

RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^.*$ - [L]
RewriteRule ^index.php$ http://%{http_host}/vb/ [R=301,L]

RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/vb/$1 [L,R=301]

RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Re: how to change apache .htaccess to nginx rewrite
December 11, 2012 04:45AM
OK, it seems to be a php issue. I tried using nginx -->Apache/php 5.2.6 and it worked fine in all browsers. Then I reverted from php 5.3.0 to 5.2.10 and went back to php-cgi using php-fpm and it worked fine in all browsers.

Please let me know how it looks on your end.

Thanks for your help.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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