• Resolved beda69

    (@beda69)


    HI
    i got following problem:
    when hitting the “dashboard” button in submenu of “my sites” (WPMU) , me and subscribed users are redirected to a error page:
    “Not Found
    It looks like nothing was found at this location. Maybe try a search?”

    —>this does NOT happen on MENU “dashboard” of MAIN admin panel (on left screen site)

    i opened firefox debug window and found that the href link for the “dashboard” buttons in “my sites” drop down menu is:
    “www.mysite.com/sitename/wp-admin”
    and not like in dashboard menu button of wp-admin panel (on left site of admin panel)
    “www.mysite.com/wp-admin/index.php”

    I tried to fix this in “functions.php.” under the corresponding section “wp_admin_bar–>add menu”
    no success: “you have no permits” error message is the result. (when hitting “dashboard” button in drop down menu)

    interesting is if i enter the url “www.mysite.com/sitename/wp-admin.index.php” in the BROWSER URL “SECTION” i am directed to proper dashboard!!!!

    does anybody know what is wrong?

    grate(foul) for any help, i am sure it is a wrong href–>link that is wrong in functions.php, but i can’t find it…

    webpage is http://www.undenk.info (subdomain of http://www.yoonect.com)
    i will disable forced login for a while so you can try around….
    thank you!!!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    “www.mysite.com/sitename/wp-admin”

    That’s correct and what it SHOULD be.

    webpage is http://www.undenk.info (subdomain of http://www.yoonect.com)

    That’s not a subdomain, that’s a MAPPED domain.

    What’s in your .htaccess?

    Thread Starter beda69

    (@beda69)

    HI
    it is a subdomain, since, i set it up over Cpanel as a subdomain, but it is a registered domain, thats why it is a unique URL.

    public_html/.htacces (yoonect.com):

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    public_html/undenk.info/.htaccess :

    RewriteRule ^admin-panel/(.*) wp-admin/$1?%{QUERY_STRING} [L]
                                    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    why this difference?:

    the public_html/.htacces is ORIGINAL (yoonect.com)
    the public_html/undenk.info/.htaccess is MODIFICATE:
    (i renamed the wp-admin to admin-panel)
    in order to do so i also added following lines to public_html/undenk.info/wp_config.php:

    "/** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    define('WP_ADMIN_DIR', 'admin-panel');
    define('ADMIN_COOKIE_PATH',SITECOOKIEPATH.WP_ADMIN_DIR);

    thank you.
    by the way, since my 2 websites are publicized here, i got 3 new users, offering viagra and fat-loss products.
    if this is somebody from this forum, i please them to not use this information we public ate here for their weird “goals”, you will be deleted straight away, anyway.

    thank you,
    beda

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    You published your URLs on a public, searchable, forum. What did you expect? We all get spam like that.

    Okay, issue #1, these are two, SEPARATE installations of WP. You didn’t mention that. You just said two sites, which actually emans they’re both on the same network. That’s okay. πŸ™‚ This is just terminology for you to learn for next time.

    Issue #2. yoonect.com is using a subfolder .htaccess – I don’t believe that’s an issue, though, as it’s just … what it is πŸ™‚ What’s in the wp-config.php for that domain for Multisite?

    (i renamed the wp-admin to admin-panel)

    Don’t do that, PLEASE don’t do that. I know you’re thinking it’ll be more secure, but it’s not, and it’s a major pain with Multisite. We cannot offer help when you do this, because not all plugins are coded perfectly and … well. You get what you get when you mess with core.

    Thread Starter beda69

    (@beda69)

    hm.
    ok thanks you.

    i did NOT change wp-admin because of SECURITY (security by obscurity=illusion)

    i did it for ESTHETIC reason.

    it is possible to change wp-login slug, user slug, etc etc.
    but wp-admin slug not??

    i do not understand why.

    it looks quiet “ugly” when you build a NETWORK for a worldwide travelers group, and users see a wp-admin slug instead of something “beautiful” like dashboard, or admin-panel.

    i do not know what kind of programs i.e. Tumblr or similar use, but i know that they don’t have this kind of slugs.

    they have clear and nice, unique slugs.

    and after all they are not anymore then personalized kind of buddy press pates, or am i completely wrong?

    i can quiet NOT understand why WP does not allow to change that.
    (of course, it is a core-programming issue, but i think, looking at all the other similar networks, it should be possible to change that, or make it at least possible to change that?

    sorry, i am not a programmer, correct me if im wrong.
    I just don’t like it when a slug is not clear and “simple”.

    well, as for the rest, sorry my terminology where wrong/inaproppriate, will try to do it better next time.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Please use double lines between paragraphs for readability, speaking of aesthetics.

    The answer to WHY you don’t mess with wp-admin is that WordPress is not Tumblr. I’m sorry you think it’s ugly, but it’s coded in a way to make it sustainable and supportable, and when you actively change it, you can cause issues with plugins and themes, and it becomes VERY hard to us, free volunteers here, to help you. So please, don’t mess with it unless you really know what you’re doing. You don’t, yet, so you should just hold off on this stuff. It IS programing.

    Let’s step back to your actual issue, though.

    Which site has the broken URLs? yoonect.com OR undenk.info ?

    Do the urls for wp-admin etc work if you turn off ALL plugins?

    Thread Starter beda69

    (@beda69)

    HI

    i hope i understood right what you meant about paragraphs/double lines.

    The broken URL was in undenk.info

    was, because i re-installed WP

    why have i done that?

    because the broken URL is obviously caused by my own modification (changing wp-admin to admin-panel)

    obviously the plugin “http://ww.wp.xz.cn/support/plugin/goodbye-wp-admin” does not provide complete code, or the author doesn’t provide correct information on how to change the wp-config file.

    i did not invent by myself the code-changing i made in wp-config or /htaccess files.
    they where provided in the installation instructions of the plugin mentioned above.

    maybe, if it is such an “un-welcome” act to change wp-core files, this plugin should not be available/there should be a warning.
    plugin author is b.t.w. not responding support questions.

    i will mark this topic as closed, even if in my opinion it is quiet not solved, but i see, wp-free-volunteers (and i kind of understand that) are not willing to support this kind of trouble.

    sorry for dumb questions from me, a non-programmer who is willing to learn/and or make things on his own.

    sorry for unclear english formulations, as non native speaker.

    i thought it could be an easy thing, to tell where to change the href links of the “dashboard” button in drop down menu of wp-admin bar, in order to fit my issue.

    thanks anyway.

    have a nice programming.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘dashboard href link broken’ is closed to new replies.