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 7516133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:02:23+00:00 2026-05-30T01:02:23+00:00

The Problem When I try to get to my ASP.NET Web Page Razor pages

  • 0

The Problem
When I try to get to my ASP.NET Web Page Razor pages using the cshtml extension, they work fine. If I remove the extension, WordPress tries to look up the URL as if it were a blog post and I can’t get to the page or use “pretty” URLs via Razor.

I am hosting with Winhost. I have WordPress installed in my root application directory. That directory contains the following Web.cofig file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="index.php"/>
      </files>
    </defaultDocument>
    <rewrite>
      <rules>
                <rule name="wordpress" patternSyntax="Wildcard">
                    <match url="*"/>
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                        </conditions>
                    <action type="Rewrite" url="index.php"/>
                </rule>
        </rules>
    </rewrite>
  </system.webServer>
</configuration>

My application is in the sub-folder “/app”. You can test out the problem yourself by going here:

http://www.cutrategamer.com/app/game-deals-chart.cshtml

Then try going here:

http://www.cutrategamer.com/app/game-deals-chart/

The page works fine without the cshtml extension on my local machine.

Does anyone know how to resolve this?

  • 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-05-30T01:02:24+00:00Added an answer on May 30, 2026 at 1:02 am

    Before the wordpress rule, add a rule to catch the /app traffic and stop processing rules, something like this:

    <rule name="razorapp" stopProcessing="true">
        <match url="^app/*"/>
        <action type="None" />
    </rule>
    

    Not sure if that is exactly correct, but you should get the idea. You need to short circuit the rewrite module before it processes the wordpress rule in your config.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem . When i try to run an ASP.NET page in
I'm new to web-development in ASP, and I'm experiencing a problem where I try
I have a multiple web sits asp.net application. In this application different domains using
I implemented 6 months ago in our web application site(Asp.Net) a page where you
Our web application started out as a big, honkin' ASP.NET AJAX 'page' with oodles
I'm starting a simple web application, using ASP.Net MVC 3. I made a few
I'm using the code here : ASP.NET How to get List of Groups in
I face a problem when I try to get value from primary table in
I try to run ELMAH with my ASP.NET MVC 2 project but have some
I have an asp.net application which uses the web part framework to allow users

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.