dimanche 28 mai 2017

How would I go about converting this code to .htaccess?

I've been googling for the last hour on how to do this but no luck, can anyone help?

<rule name="Rule 1">
  <match url="^habbo-imaging/badge/([^/]+)" ignoreCase="false" />
  <action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
</rule>
<rule name="Rule 5">
  <match url="^gamedata/habbopages/chat/commands" ignoreCase="false" />
  <action type="Rewrite" url="gamedata/habbopages/chat/commands.txt" appendQueryString="false" />
</rule>
<rule name="API - Default">
  <match url="^api/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
  <action type="Rewrite" url="api.php?request={R:1}" appendQueryString="false" />
</rule> 
<rule name="API - Rooms">
  <match url="^api/room/([0-9_-]+)(|/)$" ignoreCase="false" />
  <action type="Rewrite" url="api.php?request=room&amp;room_id={R:1}" appendQueryString="false" />
</rule> 




Aucun commentaire:

Enregistrer un commentaire