• Hi,

    I am experiencing one of the stragest problems I’ve ever have with WordPress. I am posting this in the hope that I might find at least one person who has seen this before.

    The domain of my website gets rewritten in the address bar when I try to access /wp-admin (mostly in Firefox) or when I try to save the Permalinks structure after I log in (I can log in with Chrome).

    Using Firefox, I can log in following /wp-login.php, but when the redirect to /wp-admin is made after login, the URL gets rewritten and I am being shot with an error. After this, if I open the domain/wp-admin in another tab, I notice that I am logged in and everything works normally until I want to save the Permalinks structure in which case the same thing happens. I get an error (noticing the domain is rewritten), but if I open domain/wp-admin/options-permalink.php, I can see the change has been saved.

    The domain is https://www.suremann-spenglerei.ch – once I access https://www.suremann-spenglerei.ch/wp-admin, the URL gets rewritten to: https://www.suremann-s%e2%80%8bpenglerei.%e2%80%8bch/wp-login.php?redirect_to=http%3A%2F%2Fwww.suremann-spenglerei.ch%2Fwp-admin%2F&reauth=1

    As you can see, the string %e2%80%8b appears once in between the s and the p letters from ‘spenglerei’, as well as between the dot and the TLD.

    At some point I managed to restore a backup of the website and now when I access the website with Chrome, after I log in, here is what I see in the /wp-admin/option-permalink.php screen as well as at the site name in the admin bar: https://s12.postimg.org/qpvzdfv7f/suremann.jpg

    I have tested the installation (same files) under other domains and everything works just fine, which makes me think this is a domain related problem or a charset problem.

    I would welcome any help or ideas that might lead me to a solution.

    Thank you all!
    Adrian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Adrian, have you happen to have a manually edited .htaccess (hidden) file that is rewriting these URLs? Perhaps post the contents of that file.

    Does your Site Address look right on /wp-admin/options-general.php ?

    Thread Starter railmedia

    (@railmedia)

    Hi Tyler,

    Thank you very much for your reply.

    The .htaccess file I am using is the standard WP one:

    # 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

    The Site Address looks correct on /wp-admin/options-general.php – https://www.suremann-spenglerei.ch/wp-admin/options-permalink.php

    The domain has used regular Cpanel hosting. Now it’s on wpengine.com – the problem persisted on both types of hosting.

    Thank you!

    Your Site Address should probably just be: https://www.suremann-spenglerei.ch – not sure why you pasted the longer URL, maybe just a mistake in posting here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Domain gets rewritten in address bar’ is closed to new replies.