Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9048225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:06:26+00:00 2026-06-16T12:06:26+00:00

I used IIS 7 URL rewrite module 2 to convert my .htaccess file to

  • 0

I used IIS 7 URL rewrite module 2 to convert my .htaccess file to web.config.

when using the .htaccess on my apache server everything works fine. However when I use my web.config on my IIS 7 server, everything goes to hell.

I have 3 admin pages : addcharacter.php, deletecharacter.php, editcharacter.php

the code is :

    <li><a href='admin/addcharacter' title='Add Character'>Add Character</a></li>
    <li><a href='admin/deletecharacter' title='Delete Character'>Delete Character</a></li>
    <li><a href='admin/editcharacter' title='Edit Character'>Edit Character</a></li>

where the problem lies is once i go to the first link:

http://www.mywebsite/admin/addcharacter — the first time works fine

if I switch to another link (regardless of whatever link it is) it appends the admin again

http://www.mywebsite/admin/admin/destination page

i think it’s related to the web.config file since that’s the only difference.

here is a portion of my config file:

   <rule name="Imported Rule 9">
                    <match url="^logout$" ignoreCase="false" />
                    <action type="Rewrite" url="logout.php" />
                </rule>
                <rule name="Imported Rule 10">
                    <match url="^admin$" ignoreCase="false" />
                    <action type="Rewrite" url="admin.php" />
                </rule>
                <rule name="Imported Rule 11">
                    <match url="^admin/([A-z][a-z]+)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="admin.php?action={R:1}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>

any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:06:27+00:00Added an answer on June 16, 2026 at 12:06 pm

    I believe the problem is in your links, not in the rewrite rules. You shouldn’t use relative links but absolute links. When you are on www.mywebsite/admin/addcharacter and you click a link admin/anotherpage the browser will send a request for www.mywebsite/admin/admin/anotherpage. That’s just how relative links work and there’s nothing the server can do about that. You should have the same problem on an Apache server however.

    So your links should be:

    <li><a href='/admin/addcharacter' title='Add Character'>Add Character</a></li>
    <li><a href='/admin/deletecharacter' title='Delete Character'>Delete Character</a></li>
    <li><a href='/admin/editcharacter' title='Edit Character'>Edit Character</a></li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The IIS URL Rewrite Module ships with 3 built-in functions : * ToLower -
I have a URL used on a .NET IIS server. http://10.61.65.108:8888/QQQQ/2011-06-23T00%3a00%3a00.0000000%2b08%3a00 I used HttpUtility.URLEncode
I am using IIS to develop some web applications. I used to believe that
At first I used IIS server for PHP, so I'm new to Apache (Windows
In my site, I have used IIS7's URL rewrite module to redirect URLs like
Does anyone have experience using the URL Rewrite Module (see here )? Can it
I'm using Helicon's ISAPI Rewrite 3 , which basically enables .htaccess in IIS. I
I am able to write to a log file using log4net and Cassini/IIS dev
I'm using URL routing with WebForms. I run locally through the Visual Studio web
I downloaded umbraco and used the web platform installer. Everything went though okay and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.