Forums

Unable to get a redirect working... (2 posts)

  1. mapsedge
    Member
    Posted 1 year ago #

    I'm trying to create an easy way to communicate my Facebook page link to people - something I can write on a cocktail napkin, so to speak. What I'm trying to do is

    http://www.billMorrisMusic.net/facebook

    ...and then, in IIS, redirect from there to the much longer, awkward, hard-to-share address that Facebook creates. I can do this on IIS - I've done it on other, non-WP sites, so I know it can be done. According to IIS, it works just fine. (Alternately, I could do it with a PHP file and a LOCATION header...if.)

    However, my WP site gives me a 404 error. I think it's probably something to do with permalinks, but I don't know enough about the system to say one way or the other.

    Can someone help here? What do I need to do?

  2. mapsedge
    Member
    Posted 1 year ago #

    Never mind, found the issue. For posterity, here's what happened, and how I addressed it.

    On my WP site, since I'm running on IIS, I had to install a plug-in to get permalinks to work. I'm using the URL rewrite from

    http://www.binaryfortress.com/WordPress-URL-Rewrite/

    I had to add an exception to the .ini file for /facebook. That allowed the redirect to happen.

    Done.

Topic Closed

This topic has been closed to new replies.

About this Topic