How to create .htaccess rewrite rules in web.config file for asphostportal windows hosting plan

Discussion in 'Windows Updates Discussion' started by dayrich, Nov 30, 2016.

  1. dayrich

    dayrich Bit Poster

    I've windows hosting hosted on asphostportal. I am newer to use web.config. I create .htaccess file on my localhost but its not working I don't know how to create rewrite rules in web.config file. My .htaccess rewrite rules are mentioned below. Please help me. Thanks

    # Options +FollowSymLinks
    RewriteBase /
    RewriteEngine on
    RewriteRule home$ index.php?page_id=1 [NC]
    RewriteRule blog$ index.php?page_id=2 [QSA]
    RewriteRule privacy$ index.php?page_id=3 [NC]
    RewriteRule contact$ index.php?page_id=4 [NC]
  2. Pavel

    Pavel A.I. Auto-Responder Staff Member


    This is a Virtuozzo-dedicated forum, but question is not Virtuozzo-related. Please address your query to a more appropriate place, like stackoverflow.

Share This Page