The MU forums have moved to WordPress.org

.htaccess rewrite /sign-up/ to wp-signup.php (3 posts)

  1. levi.putna
    Member
    Posted 16 years ago #

    Hey everyone,

    Trying to do a simple rewrite on a url

    I want to rewrite http://mmow.biz/sign-up/ to http://mmow.biz/wp-signup.php

    sounds simple however I'm having some problems, this is what I have so far

    #Rewrite sign up page
    RewriteCond %{HTTP_HOST} ^mmow.biz/sign-up/$ [NC]
    RewriteRule ^(.*)$ http://mmow.biz/wp-signup.php [P]

    This is my .htaccess file

    http://pastebin.com/m79605a3e

    In addition if anyone has any useful security additions to add to my .htaccess please let me know.

    Thanks,
    Levi

  2. Newtidbitz
    Member
    Posted 16 years ago #

    I also use the following in my .htaccess for additional security.

    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    Options -Indexes

    Hope this helps.

  3. eagano
    Member
    Posted 16 years ago #

    Your RewriteCond is checking HTTP_HOST, and you need to check the request.

    Try something like this:
    RewriteCond %{REQUEST_URI} ^sign-up$ [NC]

About this Topic

  • Started 16 years ago by levi.putna
  • Latest reply from eagano