Forum Moderators: phranque

Message Too Old, No Replies

URL Redirecting using PHP on IIS

         

vanik

6:54 am on Mar 5, 2009 (gmt 0)

10+ Year Member



We are currently running the developed php script in IIS.And in that they use the url redirection in .htaccess file.When we want to run the code we get pagenot found errors.where can i change the settings for the redirection of urls?

Here is my code for .htaccess file

RewriteEngine on
RewriteRule ^myplaylist playlist.php
RewriteRule ^lyrics/(.*)/(.*)?$ /lyrics.php?id=$1&name=$2
RewriteRule ^video/(.*)/(.*)?$ video.php?id=$1&name=$2
RewriteRule ^song/(.*).mp3?$ esong.php?id=$1 [L]
RewriteRule ^search/(.*)/(.*)/(.*)?$ index.php?search=$1&page=$2&type=$3 [L]
<FilesMatch "get.php$¦download.php$¦embed.php$¦playlist.php$¦info.php$¦lyrics.php$¦listen.php$"> SecFilterEngine off

</FilesMatch>

When i run the [localhost...]

i got page not found error.But we have playlist.php page.Can you please help where i can change the settings?

Thanks in Advance

gettopreacherman

4:46 pm on Mar 26, 2009 (gmt 0)

10+ Year Member



URL Rewrites on IIS are handled differently. .htaccess is unique to Apache and mod_rewrite is a module within Apache. IIS has several plugins to allow redirect rules, as to which will work for you, I would suggest search for "IIS URL Rewrite" and research which will work for you.