• Hello,

    I know there have been many posts about it.. but everything i found so far does not apply to me.

    Tool i used to check “if-modified-since” :
    https://www.feedthebot.com/tools/if-modified/

    1) I have tried with and without the / at the end.
    2) I have tried with and without www.
    3) I have tried index.php and index.php/
    4) I have tried xmlrpc.php and xmlrpc.php/

    All of them end up in one and the same way with a Default WordPress install (just a fresh install).

    HTTP/1.1 301 Moved Permanently
    Date: Tue, 26 Feb 2013 03:58:11 GMT
    Server: Apache/2.2.22 (Ubuntu)
    X-Powered-By: PHP/5.4.6-1ubuntu1.1
    X-Pingback: https://dev4ce.eu/xmlrpc.php
    Location: https://dev4ce.eu/
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=

    Duo to this being the default install, and duo to i can confirm other sites on the same server (joomla) work no problem what so ever, it leads me to believe WordPress has some seriouse neglect when it comes to SEO Optimalization.

    Duo to this being a important part for google results, it automatically makes it something i can’t just overlook.

    Which brings up the question: How can this be a pernament redirect on a Default install?

    no htaccess aplied.
    no special url (WP knows the url as https://dev4ce.eu )
    Server is confirmed to support all required to run if-modified-since (atleast with joomla).

    So… why is this happening?
    and how can this be fixed?

    As the only alternative i see is to simply stick with joomla and remain the position in google of my current websites ( dev4ce.eu is just a test domain).

    Regards,
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter m.tiggelaar

    (@mtiggelaar)

    Righty,

    in wp-includes/canonical.php

    if ( $do_redirect ) {
    		// protect against chained redirects
    		if ( !redirect_canonical($redirect_url, false) ) {
    			wp_redirect($redirect_url, 301);
    			exit();
    		} else {
    			// Debug
    			// die("1: $redirect_url<br />2: " . redirect_canonical( $redirect_url, false ) );
    			return false;
    		}
    	} else {
    		return $redirect_url;
    	}

    If i comment this out i get the status:
    Server Response HTTP/1.1 200 OK

    However still no if-modified-since.

    I also think that script is usefull (if it actually works rather then pernamently redirecting EVERY page incl the good ones).

    so guessing the whole clue would be “why isn’t that script doing it’s normal job” ?

    I still have to digg a bit deeper for if-modified-since tho.. not quite sure why WP doesn’t got this build in.

    Regards,
    Marco

    Thread Starter m.tiggelaar

    (@mtiggelaar)

    .. well i’m happely talking to my self but:
    if-modified-since works flawless with W3TC plugin loaded.

    Still leaves the question why the canonical script is bugged in the latest WP tho.

    Hopefuly some guy with PHP knowledge can find the answer to that (i’m just a server tech, not a dev ;-)).

    Regards,
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP/1.1 301 Moved Permanently’ is closed to new replies.