WordPress.org

Ready to get started?Download WordPress

Forums

permalink/htaccess problems 10th post, no replies from support (10 posts)

  1. bungeebones
    Member
    Posted 4 years ago #

    I've got a pluggin that works fine as long as I don't use any permalink option other than default.
    The problem is related to WordPresss removing the trailing portion of the requested URL.
    It works fine under the default setting using a URL such as http://www.advertisite.us/?page_id=3/2584/3/
    that has 3 (3/2584/3/) or more slash separated values.

    I was fortunate to have found a plugin (custom permalinks) that lets me retain the beginning part of the link structure (?page_id=3)
    even after changing the entire site over to a different permalink structure. Now, after changing the permalink option to numeric,
    the "About" page now has the url http://www.advertisite.us/about but the plugin page is still http://www.advertisite.us/?page_id=3/

    The problem ---- WP will trim everything after the 3

    So where /what is causing this?

    I go to the new htaccess (created when permalink numeric activated) and change the
    rewrite target to another page in root like this and nothing at all happens? It seems WP creates an htaccess that doesn't do anything?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /feedback.php/$1 [L]//changed from index.php
    </IfModule>

    # END WordPress

    All I need is WordPress to handle the link http://www.advertisite.us/?page_id=3/2584/3/ Is that so hard? I've been working 3 days on this issue,
    have not gotten one response from numerous posts on this issue.

    It seems to me that WordPress is doing some internal rewriting (apart from the htaccess).

    I've tried to get that premise answered here in this forum to no avail. Are the moderators not able to answer it?

    But if the premise is correct, it seems totally opposite of the purpose of having plugins. If I have to get into
    the internal workings of the WordPress code in order to get it to do something as basic as handle that url then something is wrong

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    1. There is no "support" entity or team for a self-hosted WordPress.org site.

    2. Sounds like the problem lies with the plugin. It should work with WP - not the other way around.

  3. bungeebones
    Member
    Posted 4 years ago #

    So does WordPress rewrite the URLs internally? Where?

  4. bungeebones
    Member
    Posted 4 years ago #

    PS I wrote the plugin, so if I can find where WordPress rewrites the URLs internally then MAYBE I can get the pluggin to work in WordPress (if it lets me)

  5. webbdawg
    Member
    Posted 4 years ago #

    WOW, ESMI says "You host it you are on your own"

    Not good public relations for a CMS that claims to be at the top of the heap. But I guess that is how it is in 2010.

    Thanks
    Dave

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    You host it you are on your own

    Pretty much - yes. That's how it is for every site that you create using free, open-source, software. WordPress offers masses of documentation and a forum where users can help each other out but there's no dedicated support team. As in life, you get what you pay for.

  7. esmi
    Forum Moderator
    Posted 4 years ago #

    @bungeebones: The custom structure is stored in the wp_options table (option_name: permalink_structure). I think the redirect handling is carried out by wp-includes/canonical.php but I've not looked into it any great detail.

  8. mrmist
    Forum Janitor
    Posted 4 years ago #

    If you want to disable the redirection entirely you can turn off canonical redirects with a simple plugin -

    http://txfx.net/files/wordpress/disable-canonical-redirects.phps

  9. Robert Chapin
    Member
    Posted 4 years ago #

    wp-includes/rewrite.php

    The option name is actually rewrite_rules. It can be done.

  10. bungeebones
    Member
    Posted 4 years ago #

    MrMist, I give you half my kingdom.

    That did it.

    50 characters long, what a gem!, I spent about 30 hours of my own time looking for it and could have spent another 100.

    Thanks!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.