1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wordpress problem redirect file to directory

Discussion in 'Blogging' started by bleach, Feb 16, 2013.

  1. bleach

    bleach Senior Member

    Joined:
    Oct 12, 2008
    Messages:
    934
    Likes Received:
    82
    Location:
    New York
    i need someone who know about wordpress

    i need to redirect blabla.com/wp-admin/admin.php?page=ppt_admin.php to blabla.com/wp-admin/ or blabla.com/wp-admin/ to blabla.com/admin
     
  2. Endire

    Endire Elite Member Premium Member

    Joined:
    Mar 27, 2012
    Messages:
    1,756
    Likes Received:
    1,061
    Gender:
    Male
    Bleach,

    Is there a reason you cannot redirect these URL's using .htaccess? Unless your server does not have support for this configuration file this would seem like the most effective means. You would just have to ensure that the proper files were located at that new location or you wouldn't be able to login to the backend.

    Unless of course you are building something and need to redirect from within the code. Have you tired the wp_redirect() function in that case?

    More on that code here,

    php - How to redirect to different admin page in Wordpress? - Stack Overflow

    Best,

    Shawn
     
    • Thanks Thanks x 1