Wordpress URL's

Discussion in 'Black Hat SEO' started by KlaAz0r, Oct 12, 2011.

  1. KlaAz0r

    KlaAz0r BANNED BANNED

    Joined:
    Jan 11, 2011
    Messages:
    721
    Likes Received:
    852
    I am stuck with a little problem, I have been trying to get this work but so far with no luck : (

    who knows how I can do this:

    wordpress login page (wp-login.php) - delete register link
    and disable the wp-login.php?action=register URL and make it a custom URL


    I want to have a custom URL that I can make for example like url.com/45346j54n6h and change it when I want and only make the register work on the URL

    any one ? :)
     
  2. blackhatcodex

    blackhatcodex BANNED BANNED

    Joined:
    Aug 28, 2011
    Messages:
    144
    Likes Received:
    248
    Insert this into your .htaccess file:

    HTML:
    # BEGIN insert this RewriteRule
    RewriteRule ^login$ http://mywpsite.com/wp-login.php [NC,L]
    # END
    

    Such as:
    HTML:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # BEGIN insert this RewriteRule
    RewriteRule ^login$ http://mywpsite.com/wp-login.php [NC,L]
    # END
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    That will give you a nice little login URL, then just go into your admin panel -> Go to Settings -> Go to General

    Now just uncheck where it says "anyone can register"
     
    • Thanks Thanks x 1
    Last edited: Oct 12, 2011
  3. KlaAz0r

    KlaAz0r BANNED BANNED

    Joined:
    Jan 11, 2011
    Messages:
    721
    Likes Received:
    852
    thanks! only problem is I want people to register but only froma different URL and if I disable it from admin pannel no one can register
     
  4. blackhatcodex

    blackhatcodex BANNED BANNED

    Joined:
    Aug 28, 2011
    Messages:
    144
    Likes Received:
    248
    Well....then just change the login rewrite rule with the register rewrite.