• I’d like to use the dashboard as the site, so when someone visits the example.com they are automatically taken to the dashboard.

    I’ve got this part working by simply setting index.php as:

    header( 'Location: ' . get_bloginfo('url') . '/wp-admin' ) ;
    die();

    However, I’d like to hide the /wp-admin bit altogether. So they only see example.com/, or example.com/edit.php instead of example.com/wp-admin/edit.php

    I also tried adding an admin_filter:

    add_filter('admin_url', 'backend_only');
    function backend_only(){
        return get_bloginfo('url') . '/';
    }

    Finally, I would like to mask the .php, so example.com/edit.php is actually shown as example.com/edit

    I am very green when it comes to the .htaccess and I just keep putting myself in an infinite loop when I try.

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • My suggestion is to not spend a lot of time trying to get this to work, because you will fail mu ha ha :). I’ve wasted a lot of time myself on similar things, some limitations of WordPress include having to just stick with the wp-* conventions or risk breaking a lot of stuff.

    Thread Starter Oz Ramos

    (@labofoz)

    You’re probably right, I’m fighting an uphill battle here. I feel like there is a way to do this through just .htaccess though ??

    I’m building a web app and wanted the “frontend” to exist within the wp-admin dashboard. People who are logged out would only see login/register menu items on the left plus About content on the dashboard, and everyone else would see the normal menu on the left plus metaboxes <i>and</i> content on the dashboard.

    Although as I wrote this, I just realized I could fake this effect by simply making a front-page.php that looks like a dashboard for those logged out…because my next question was going to be “How would I let anonymous see the dashboard” ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Renaming wp-admin to /’ is closed to new replies.