tags:

views:

113

answers:

2

I am hosting a Wordpress site at the Rackspace Cloud. The main site is written in asp.net so I have the default technology set to ASP.NET/IIS.

Php files can still be executed in this environment, however they need to end in a .php extension so the server knows how to process them.

I have found a way to add the .php extension to permalinks by just adding the .php to the end of the structure. I also have found a way to add it to any Pages with this plugin, http://wordpress.org/extend/plugins/html-on-pages/.

It appears all I have left are category and tag pages. For example [domain]/category/uncategorized

I'd like to change this to /category/uncategorized/index.php or simply [domain]/category/uncategorized.php

One other thing to note, if you're not familiar with the Rackspace Cloud, I can not use a .htaccess file for this.

I would think there is somewhere I can do this within the code of Wordpress application, but I am not a php developer and have no idea where I would start.

I've been reading blogs and forums for about 5 hours now and can't come up with anything.

Thanks for your help in advance.

A: 

Duke,

actually, you wont want to do that. what you really should do is setup the permalink structure so it's routed through index.php, such as domain.com/index.php/my-page/ and that way WordPress can properly capture all of the pages and posts that are supposed to be routed to WordPress.

Look here for more information: http://codex.wordpress.org/Using_Permalinks#PATHINFO:_.22Almost_Pretty.22

Jonathan Dingman
Unfortunately that doesn't help. When testing if I setup a permalink structure of "index.php/%postname%" the url to a post is [domain]/index.php/hello-world . This gives me a 404 Error.If I set the permalink stucture to: "%postname%.php" it will give me a url to a post of [domain]/hello-world.php and this loads fine.I wish your suggestion solved my problem, but it doesn't.
DahlinDev
A: 

Duke,

I think you missed the part about using PathInfo instead of mod_rewrite, which is what it sounds like what you'll have to do.

It's tricky doing what you want to do, in the first place. You may be better off just setting it to the default permalink, and using domain.com/?p=533 so it doesn't make it links pretty at all.

Jonathan Dingman