WordPress.org

Forums

Two URLS displaying (5 posts)

  1. Uma Sumeros
    Member
    Posted 4 years ago #

    Hello everyone:

    For the past two months we have been trying to operate a multisite at a hosting company that claimed they were optimized for WordPress. We had them install an SSL certificate and asked for it to be applied to specific folders, but they couldn't do it.

    Shortly after they attempted to fulfill our request, our URL began displaying like this:

    http://ourdomain.com/a-page-on-wordpress/https://ourdomain.com/a-page-on-wordpress/

    We began using CloudFlare to improve the performance of the website and because we could not use the SSL certificate the way we had planned, we asked them to remove it.

    We had more than 400 pages on the index and now it's down to about 20. I have exchanged numerous emails with our hosting company,and they believe that this is due to either an internal script, a cron job or incorrect input of the domain name.

    We have searched every table in our database and went through every plugin and cannot find anything that would cause this error.

    We have checked both our .htaccess file and the wp-config.php file and wp-settings files and found nothing.

    Does anyone know what would cause the one url to be appended to another as in http://ourdomain.com/a-page-on-wordpress/https://ourdomain.com/a-page-on-wordpress/ and a solution to fix this problem?

    We are using the Catalyst template, with these plugins:

    W3Total Cache
    Redirection
    Broken Links
    Nrelate
    Sexy Bookmarks
    Slick Flickr
    Downloads Box
    Random Rotating Ads V2
    GD Rating
    Mingle Forum
    WordPress Image Compressor
    FeedWordPress
    Feedburner
    CloudFlare

    I really need help understanding what going on and how to fix this problem.

    Thank you

  2. I would hazard a guess that either you didn't turn on SSL on WP, or they set it up wrong. But if they've turned it off and it's STILL happening, make sure you flush the cache in w3tc

  3. Uma Sumeros
    Member
    Posted 4 years ago #

    Hello:

    Thanks for your reply. When we had them install the SSL certificate, we had the HTTPS plugin installed. Everything was working fine from June 1 to July 5th and then the nightmare began: Permalinks broke, plugins broke, you name it - we had it.

    Although the hosting company assured us that they were optimized for WordPress and could handle a multisite installation, NONE of the plugins for multisite work and this was before the SSL certificate was installed.

    I activated WP-DEBUG to see if I could find a clue there, but all I found was many instances of:

    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 79 bytes)

    and

    [20-Jul-2011 23:00:28] WordPress database error Duplicate entry '75419-1402' for key 'PRIMARY' for query INSERT INTO bts_term_relationships

    Beside errors relating to depreciated statement in plugins, I found nothing that relates to the URL problem.

    The sitemap generator has found 179 broken links formatted with the two URLs back to back, but I cannot find out where they are being generated from. When I check the database there is only one url -the correct one in the table.

    So where is the https url coming from and how is it being attached to the http url? That is what I need to know how to fix.

    I have flushed the W3TC cache, but it has not helped at all. I have the broken links checker plugin installed and reports that there are no broken links.

    I am seriously getting frustrated because the hosting company claims that this is not a server issue, but a problem with the coding or plugins.

    Help!

  4. we had the HTTPS plugin installed

    Which plugin was that?

    Also, what's in your .htaccess file?

  5. Uma Sumeros
    Member
    Posted 4 years ago #

    This is the plugin we were using:

    http://wordpress.org/extend/plugins/wordpress-https/

    Here is our .htaccess file:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    
    RewriteCond %{SERVER_PORT} ^443$ [OR]
    
    RewriteCond %{HTTPS} =on
    RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
    ####################################   HTTP Header Caching Setting   ##################################### Set far-future expiry for images, css, and js# Remember that you MUST change the filename whenever you update these items!# Enablel this in your httpd.conf :# LoadModule expires_module modules/mod_expires.so<ifmodule mod_expires.c><Filesmatch "\.(jpg|jpeg|png|gif|js|css|swf|ico)$">    ExpiresActive on    ExpiresDefault "access plus 3 months"</Filesmatch></ifmodule>
    
    # BEGIN WordPress Multi-Site
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress Multi-Site

    What we are trying to figure out is whether this is a WordPress problem or a server problem?

    Thank you for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic