• I have a very strange problem with permalinks on my website https://www.transferpricing.wiki. I am using the latest version of WordPress with the Fusion theme from Mysitemyway. All plugins are up-to-date.

    As long as I use the standard (ugly) URL structure, everything works fine. However, I want to use the post name structure. I can set this up fine, .htaccess is being updated correctly, and the links/urls generally work fine – as long as I don’t work on my site.

    However, every time I work heavily on my site (updating pages, menus, etc), things go wrong with the URLs. E.g., when I try to open https://www.transferpricing.wiki/general-transfer-pricing-information/transfer-pricing-definition/ it opens https://www.transferpricing.wiki/country-files/asia-and-middle-east/transfer-pricing-in-Hong-Kong/ or some other random page instead. This happens both when I click a menu link or when I type in the URL directly. Sometimes it doesn’t open a page at all but I get a blank page, and sometimes I get a ‘too many redirects’ error.

    Usually the problem goes away (i.e. links work again) after I haven’t worked on my site for some time (couple of hours / a day or so).

    Things I’ve tried myself to no avail:
    – Changed permalinks to standard and then back again.
    – Checked .htaccess, it is correct. Replaced it, changed permissions, etc.
    – Disabled all plugins, problem does not go away.
    – Tried the standard theme, problem does not go away.
    – Contacted my hosting provider (Internettoday.nl), they don’t know what could cause this.

    I have noticed this problem before with another website hosted at the same hosting provider, hence my reason for contacting them. However they don’t know what is causing this problem. Also the other website uses a Mysitemyway theme as well, however I also tried reverting to the standard theme which didn’t help.

    I don’t know what else could be causing this. Any thoughts, anyone?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I would download a fresh copy of WordPress.

    Then, I would open your current wp-config.php and the downloaded “fresh” copy of wp-config.php and compare any differences.

    I would also look at my .htaccess file; and see if there are any unnecessary redirects.

    Thread Starter rekmit

    (@rekmit)

    Thanks for replying! I compared a newly downloaded wp-config-sample.php with my wp-config.php and the only differences I can see are the filled-in database name, username and password, and the keys for AUTH_KEY, etc.

    This is what my .htaccess looks like:

    # 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

    Thread Starter rekmit

    (@rekmit)

    Anyone?

    It now appears that the problem is also there when I don’t work in my site. Highly annoying…

    Thread Starter rekmit

    (@rekmit)

    In the meantime, I have ruled-out that my problem is theme-related.

    Actually I was convinced that it was, therefore I completely rebuilt one of the websites this is occurring on using the Genesis / Executive Pro theme (which took me quite a long time) – only to find out that it still happens.

    Any thoughts on a possible fix would be greatly appreciated.

    Did you find a solution? I have the same issue with https://www.turnersports.nl

    I’m using the Virtue theme on a just installed WordPress 2.9.3 setup and the %postname% permalink structure.

    First, I reset my browser. Things work well at that point. To reproduce the issue, I just keep visiting the four menu items, until suddenly either a product detail page appears or the message “This webpage has a redirect loop” appears. For some reason, it’s always a random product detail page.

    Very weird: if Chrome goes wrong, and I fire up FireFox, then FireFox just works properly for several clicks. Resetting a browser does result in the correct page to be displayed.

    I checked the http traffic for the browsers. A 301 Moved Permanently response is returned. I then tried the same thing using telnet, but then a 200 OK message appears.

    telnet www.turnersports.nl 80
    Trying 87.236.100.120...
    Connected to www.turnersports.nl.
    Escape character is '^]'.
    GET /over-ons/ HTTP/1.1
    host:www.turnersports.nl
    
    HTTP/1.1 200 OK
    Date: Fri, 29 Aug 2014 22:25:34 GMT
    Server: Apache
    X-Pingback: https://www.turnersports.nl/xmlrpc.php
    Link: <https://www.turnersports.nl/?p=13>; rel=shortlink
    X-SATserver: S=CLN01B D=832290 uS
    Vary: Accept-Encoding
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8

    I fail to understand the 301 message: why is it showing on one browser and not the other. Why is it never showing in terminal. If resetting the browser temporarily solves the issue, it sure sounds like cache, but why the HTTP response? And how does the webserver know about the

    What I tried:

    * deleted .htaccess and let WordPress generate a new one by modifying the permalinks setting
    * reviewed all slugs and made sure they’re unique
    * reset permalinks to standard – no problems occur
    * using a different template for those product detail pages. No change
    * tried Twenty Fourteen theme instead. Cleared cache. Error reoccurred. Cleared cache again. Error does not return. Then moved to Twenty Twelve theme and finally to my Virtue theme. Cannot reproduce the errors with any browser after clearing the cache.

    Now I’m really lost. Why does it seem to work properly now? I cannot trust my site this way.

    Thread Starter rekmit

    (@rekmit)

    Hi, no I haven’t found a solution yet. I’ve moved 1 of the 2 sites this is happening on to another hosting provider, and the problem is gone. So I am pretty sure the problem is server-related. My original hosting company will move the other site to one of their other servers today, hope that helps.

    So I would contact your hosting company about this, please let me know if they find the cause!

    Thread Starter rekmit

    (@rekmit)

    Ha! I see your site is also hosted with InternetToday, correct? Then it really must be a problem at their servers! If you contact them, refer to my ticket no #EWM-185-15262!

    Yes, I do have quite some WordPress sites with InternetToday / Oxxa, without problems. This is the first one experiencing this problem. I have looked for the http-logs as I wanted to know what happens exactly. Couldn’t find them.

    But my problems magically disappeared after I switched to TwentyFourteen, Twenty Ten and then back to the Virtue theme I was using.

    I will raise a ticket with them today and refer to your ticket. But I don’t have a strong case as the issue got solved by fiddling with the themes I’m afraid.

    Thread Starter rekmit

    (@rekmit)

    Strange because my issues remain after switching themes. They take a while to reoccur, btw. I also have a couple of sites working well, it is really strange.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pretty permalinks opening wrong page (periodically)’ is closed to new replies.