Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 101 posts 123 karma points
    Oct 30, 2012 @ 15:49
    Nick
    0

    Installing wordpress blog onto Umbraco project - redirect URL question

    Hi everyone,

    I have a question regarding running a wordpress blog in an umbraco project.
    The server is a .NET server with IIS and it's also configured to run PHP.

    The blog runs fine except the web.config of umbraco applies onto the blog and overrides certain PHP defaults that I don't know how to fix.

    For example the default page is default.aspx instead of index.php inside the "blog" folder even though IIS has been set up to use index.php

    How do I make it so that www.mydomain.com/blog/ goes to www.mydomain.com/blog/index.php automatically?
    I tried adding a webconfig inside the blog folder with a redirect rule that caused a 500 error.

    Any help is very much appreciated.
    Thank you

  • Nick 101 posts 123 karma points
    Oct 30, 2012 @ 16:21
    Nick
    0

    I can't figure out which setting in UrlRewriting.config will help me achieve that

  • Nick 101 posts 123 karma points
    Oct 31, 2012 @ 14:09
    Nick
    0

    I have resolved it.

    If anyone ever installs a wordpress blog under umbraco and needs help, feel free to ask me!

  • ande 3 posts 23 karma points
    Feb 06, 2013 @ 16:43
    ande
    0

    I am looking at doing this how did you get round this issue?

  • Nick 101 posts 123 karma points
    Feb 06, 2013 @ 17:13
    Nick
    0

    Hey

    there is a key there in the config file where you add the folder which should be exempt from the rules.

     <add key="umbracoReservedPaths" value="~/umbraco,~/install/" />

    So if you have your blog in a folder called "blog", you add to that list of folder the keyword "blog".

     <add key="umbracoReservedPaths" value="~/umbraco,~/install/, ~/blog/" />

    Good luck
     

  • ande 3 posts 23 karma points
    Feb 06, 2013 @ 17:34
    ande
    0

    That's fantastic!

    Does this mean the single entry will cover subdirectories of ~/blog/ as well?  I hope so as WP creates subdirectories for each year, month, day, etc.!

  • Nick 101 posts 123 karma points
    Feb 06, 2013 @ 17:45
    Nick
    0

    Yeah in my case the subdirectories were handled too. Give it a try...

  • ande 3 posts 23 karma points
    Feb 06, 2013 @ 19:35
    ande
    0

    Thanks much appreciated

     

Please Sign in or register to post replies

Write your reply to:

Draft