Web.config Routing within another Folder RRS feed

  • Question

  • User1639928321 posted

    Hello, I'm new to the world of windows webservers. I'm working on a project where i have one main site "site.com" and then a blog run on that site as well on "site.com/blog/". I'm having issues with the web.config file within the /blog/ folder. The routing is still taking all urls on /blog/ to "site.com". However, I'd like all traffic on "site.com/blog/xxx/" to go through "site.com/blog/index.php". So my question is how can I craft a web.config to complete this routing.

    In .htaccess the web.config file within /blog/ would look like this:

    RewriteEngine on

    RewriteCond $1 !^(index\.php|images|robots\.txt)

    RewriteRule ^(.*)$ /blog/index.php?/$1 [NC,QSA,L]

    Sunday, July 19, 2020 8:09 PM

All replies

  • User1639928321 posted

    Would really appreciate some help here


    Friday, July 31, 2020 3:50 AM