WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks - Redirects to Homepage - Can't Resolve (5 posts)

  1. SubLo
    Member
    Posted 2 years ago #

    Hi folks! =)

    Let me first state how grateful I am to be using WordPress, coming originally from another (free) platform. The "extensibility," flexibility and support of WordPress is astounding so far.

    In any case, I'm career Systems/Network Admin and have good experience programming in PHP. So, I like to think I know what I'm doing sometimes. However, this one has got me completely stumped. Sure enough, I have searched and read endlessly on teh Goog's various results for folks with the same problem. I've tried most of the suggestions but have not been able to resolve it. It's driving me to drink =( Thus, I've come here hopefully for assistance.

    So I have this blog http://www.thetruthaboutbartending.com

    Like many other n00b bloggers (I consider myself a n00b), I started off unfortunately on the wrong foot with the default link structure. I reached 50 or 60 posts before I learned/realized that I would like to switch to Fancy Permalinks for obvious reasons - SEO being the primary concern.

    I've tried a myriad of plugins, mod_rewrite enabling, and various .htaccess variations to try and get this to work but have after maybe 12 attempts, been completely unsuccessful. What happens each and every time I switch, is that every post has the correct new Permalink URL but mysteriously redirects to the blog Homepage no matter what I try.

    I have the "Advanced Permalinks" plugin still installed. I thought I had my .htaccess setup properly. But, I keep having to revert back to the default structure lest my articles be unreadable.

    Here's my .htaccess:

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

    Any assistance you could provide would be greatly appreciated.

    Many thanks.

    -Freddy

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    I would suggest deactivating the "Advanced Permalinks" plugin. I don't know what it does or why you would need it, but it could be the cause of the problem. As a rule, the first things you should always try are deactivating all plugins and switching to the default theme to rule out the possibility that the theme or a plugin is causing the problem.

  3. SubLo
    Member
    Posted 2 years ago #

    Thanks for the prompt reply. Yeah. I tried that. The problem still exists unfortunately.

  4. SubLo
    Member
    Posted 2 years ago #

    Jesus Christmas! I FIXED IT finally!!!!!!!!! w00t!

    It's all thanks to this post: http://strangelyperfect.tv/11622/wordpress-permalinks-generated-but-not-redirected/

    After many attempts, it wasn't my Apache, htaccess, plugins or anything else. All I did was insert "index.php" in front of the Custom URL Structure and voila!

    All is working! I don't understand why, but whatever.

  5. SubLo
    Member
    Posted 2 years ago #

    So here's another thing. For the last 24 hours, I haven't slept because I could not accept the fact that WordPress Permalinks was requiring an /index.php in front of my custom permalink to avoid redirects to the home page. It was really irking me that my urls all began with domain name/index.php/slug. Ugly!

    What WordPress doesn't tell you, or what fixe the issue in my case, was not only enabling mod_rewrite in Apache, but putting this line below specifically in my virtual server's respective area in httpd.conf.

    AllowOverride All

    Geez.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.