Question

Anyone with a bit of experience with CFWheels will know how awesome it is, but also how fiddly it is with its placement in the web root / sub-folders etc.

I have a CFWheels website, that I would now like to place alongside a WordPress installation.

CFWheels placed in the web root (which is fine) and I would like WordPress to run in a sub-folder in that same web root named 'blog'. How can I do this without invoking CFWheels desire to find a controller or action called 'blog'?

I know that the 'miscellaneous' folder is a folder that I can place things that CFWheels will ignore, but putting the blog into this directory isn't really an option.

Any help or advice would be great.

EDIT: I just noticed that the miscellaneous folder has a blank Application.cfc file that stops CFWheels messing with it. I'm not around to test this right now, but will update later if it's possible to use this same technique on other folders I create. I may have answered my own question in record time.

Thanks, Mikey.

Was it helpful?

Solution 2

Placing a blank Application.cfc file in the folder of choice, stops CFWheels getting involved with everything in it.

OTHER TIPS

Wordpress runs on PHP so CFWheels should never get involved in the process. If it does, simply change the DirectoryIndex (or IIS equivalent) to have index.php ahead of index.cfm for the Wordpress directory (or link to blog using full URL and not just the directory) and you should be fine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top