Sunday, 14 May 2017

php - .htaccess (mod_rewrite) and Microsoft azure

I have this code in my .htaccess and i need this transform to microsoft azure hosting, because it doesnt work.




RewriteEngine On

RewriteCond %{THE_REQUEST} /index\.php[?/\s]

RewriteRule ^index\.php$ /en/ [R=301,L]

RewriteCond %{THE_REQUEST} /index_cz\.php[?/\s]
RewriteRule ^index_cz\.php$ /cz/ [R=301,L]

RewriteRule ^/en/?$ index.php [NC,L]
RewriteRule ^cz/?$ index_cz.php [NC,L]


Could someone help me? Thanks guys

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...