The MU forums have moved to WordPress.org

Some problems with redirections (2 posts)

  1. byjournal
    Member
    Posted 17 years ago #

    Hi guys. I have a problem.
    Link exchange system provide the following php code:
    <?php
    define('_SAPE_USER', 'da60bdf712e521c9ba89437968090d20');
    require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php');
    $sape = new SAPE_client;
    echo $sape->return_links();
    ?>

    so, the file http://somehost/da60bdf712e521c9ba89437968090d20/sape.php must be included. if i try to go by this url wordpress provide to create a blog... what to do to stop wordpress blog creating only with this name?

  2. lunabyte
    Member
    Posted 17 years ago #

    Use a mod rewrite expression to exclude that file, before it sends everything to index.php in your htaccess file.

    There's an example floating around here for excluding "forum" or something like that that you could adapt to your needs.

About this Topic

  • Started 17 years ago by byjournal
  • Latest reply from lunabyte