MVC on IIS without mod-rewrite plus SEO friendly URLS
Moderator: General Moderators
MVC on IIS without mod-rewrite plus SEO friendly URLS
Hello,
I've got this strange the problem, I would like to implement MVC with SEO friendly URLs on an IIS6.0 without using any rewrite modules. Also I don't want to show any php extension or even index of index.php. I would like if I have site on IIS running, http://www.example.com, I would like to show the module and actions in the form of http://www.example.com/module/action. How is this possible. I'm breaking my head looking for some $_SERVER['REQUEST_URI']. The challenge looks on even removing index.php which almost looks like impossible. I cannot set the change the default file name on IIS also.
Could you please throw some of your ideas on to this.
Thank You
dude81
I've got this strange the problem, I would like to implement MVC with SEO friendly URLs on an IIS6.0 without using any rewrite modules. Also I don't want to show any php extension or even index of index.php. I would like if I have site on IIS running, http://www.example.com, I would like to show the module and actions in the form of http://www.example.com/module/action. How is this possible. I'm breaking my head looking for some $_SERVER['REQUEST_URI']. The challenge looks on even removing index.php which almost looks like impossible. I cannot set the change the default file name on IIS also.
Could you please throw some of your ideas on to this.
Thank You
dude81
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
As far as I know you can't. I know little to nothing about IIS, but what your asking is like asking to print something without using any print commands. You will need to use some equivalent of Apache's Mod Rewrite!
Now what you could do is create a numerous number of directories and place various files in each of them. But if your looking for the dynamic solution and far less files... go with the url rewriting option.
Now what you could do is create a numerous number of directories and place various files in each of them. But if your looking for the dynamic solution and far less files... go with the url rewriting option.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
What AlanG said. Just wanted to throw out there the IIS's equivilent to mod_rewrite is ISAPI Rewrite
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
I cannot ask the client to buy all this and upgrade IIS with this ISAPI rewrite for my experiments. But I somewhere think this is possible, but trying hard to figure out... Please let me know, if you could find any solution.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
It has a free license, so you know..dude81 wrote:I cannot ask the client to buy all this and upgrade IIS with this ISAPI rewrite for my experiments. But I somewhere think this is possible, but trying hard to figure out... Please let me know, if you could find any solution.
You need the right tools for the job. Period. I will eat my words if I'm wrong.
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
But it runs some hundreds of websites... its Risk..
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
Again, this needs to be implemented at the server level simply because this is not the default behavior of the server software. However, I did find the "official" rewrite module for IIS found here
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
Don't you have a test environment ?dude81 wrote:But it runs some hundreds of websites... its Risk..
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
What caught my attention more was he was running hundreds of sites from a single server! I generally limit the # of medium volume sites to 4-5 per dedicated box.papa wrote:Don't you have a test environment ?dude81 wrote:But it runs some hundreds of websites... its Risk..
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
Unfortunately No 
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
Why don't you set up a test environment on your own computer then?dude81 wrote:Unfortunately No
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
yeah, thats hard to remove apache from the system,it hurts somewhere
but I think that is the only way
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
Yeah hundreds sounds a bit muchJohn Cartwright wrote:What caught my attention more was he was running hundreds of sites from a single server! I generally limit the # of medium volume sites to 4-5 per dedicated box.papa wrote:Don't you have a test environment ?dude81 wrote:But it runs some hundreds of websites... its Risk..
We have about 60 internet sites on 2 load balanced servers and it works fine. But It's not that heavy traffic.
OP: We use ISAPI but nothing I've worked with so can't help you there. Only used Apache's rewrite.
Re: MVC on IIS without mod-rewrite plus SEO friendly URLS
That's why you create virtual machines.dude81 wrote:yeah, thats hard to remove apache from the system,it hurts somewherebut I think that is the only way
Create one similar to your client's production environment and fire away.