Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Using rewrite to remove a subdirectory for 2 routes

$
0
0

I have an application that is accessed in the following way:

www.domain.co.uk/application/apples/index.aspx

or a second route

www.domain.co.uk/application/pears/login.aspx

(Note: the 2 routes have different default pages)

Can anyone give me some help to use URL rewrite to remove the "/application/" from the URL and all subsequent pages?

So a user can access the application using:

www.domain.co.uk/apples/index.aspx

or

www.domain.co.uk/pears/login.aspx

Also, if someone tries www.domain.co.uk/apples/ they will go to www.domain.co.uk/apples/index.aspx

and likewise www.domain.co.uk/pears/ they will go to www.domain.co.uk/pears/login.aspx

As a bonus, can I also remove the .aspx from the pagenames?

Thanks


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>