Hi, i'm new in nginx my .htaccess is : <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?%{QUERY_STRING} RewriteRule .* - </IfModule> Thanks ..by alex1950 - How to...
rewrite /test-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1; rewrite /test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1; rewrite /pm-(.*)\.(jpg|png|gif|html)$ /index.php?pm=$1; rewrite /pt-(.*)\.(jpg|png|gif|html)$ /index.php?pt=$1; rewrite /dt-(.*)\.(jpg|png|gif)$ /index.php?dt=$1; rewrite /dm-(.*)\.(jpg|png|gif)$ /index.php?dm=$1; rewrite /di-(.*)\.(jpg|jpeg|png|gif|bmp)$ /index.php?di=$1; reby alex1950 - Nginx Mailing List - English
Hi, <IfModule mod_rewrite.c> # Tell PHP that the mod_rewrite module is ENABLED. SetEnv HTTP_MOD_REWRITE On Options +FollowSymLinks RewriteEngine on RewriteRule test-(.*)\.htm$ inc/tesmodrewite.php?q=test_$1 RewriteRule test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1 RewriteRule pm-(.*)\.(jpg|png|gif|html)$ index.php?pm=$1 RewriteRule pt-(.*)\.(jpg|png|gif|html)$ index.pby alex1950 - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|