URL Redirecting using PHP on IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarayu
    New Member
    • Jul 2008
    • 15

    URL Redirecting using PHP on IIS

    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

    Code:
    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 http://localhost/project/MobileSearch/myplaylist

    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
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Code:
    RewriteRule ^myplaylist/ playlist.php
    Should be
    Code:
    RewriteRule ^myplaylist/$ playlist.php
    You might have to fiddle around with the leading and trailing slashes.

    Comment

    Working...