Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

moving .htaccess file to web to web.config in azure


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 mutago


    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 478 posts

Posted 20 March 2015 - 03:04 AM

Please I dont know if this is the write place to post this.
I just hosted a website on  microsoft windows azure and realize that Azure uses IIS instead of apache and thus 
.htaccess Re-write rule does not work.
I have the links below
In .htaccess files I re-write the following url 
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ profile.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)$ message.php?mess=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ message.php?mess=$1
my question is an new to Microsoft window azure. How can I rewrite it to Azure IIS web.config

#2 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 21 March 2015 - 11:06 AM

Check this article about writing rewrite rules on Azure

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download