i got this done on Web.config :
<rewrite>
<rules>
<rule name="Fail bad requests">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="localhost" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Rewrite to Artist Name.php">
<match url="^artists/([0-9]+)" />
<action type="Rewrite" url="artist-details.php?artistlink=$1" />
</rule>
</rules>
</rewrite>
when i upload this (Web.config) on server then i get: 500 (Internal Server) Error
On my htaccess it was:
RewriteEngine on
RewriteRule ^artists/(.*)$ artist-details.php?artistlink=$1 [NC,L,QSA,T=application/x-httpd-php]
Can help me out in this?