• Hi everybody,

    I have a domain xyz.com registered with United Domains.

    I forward from there to my server abc.com wher I have wordpress installed in subfolder /wordpress. My server abc.com is hosted at Hosteurope, another hosting company. So far, I use URL Hiding to do so, because I want my visitors to remember and see the xyz.com URL.

    This works well until one starts to navigate on the wordpress site, eg when one clicks a link on a post.

    Then the URL changes from xyz.com to abc.com/wordpress/link-adress.

    I would like to always habe xyz.com in the adress line but with a complete URL behind, such as abc.com/link-adress.

    (I do not want to use “frame forwarding” for various reasons. Changing the WordPress Address (URL) / Site Address (URL) in the General Options in WordPress did not work – I could not log in anymore.)

    This is my first post in this forum. I read the rules before and I hope I did everything correctly. If not please let me know. I assume this is more a domain problem than a wordpress problem, but I would highly appreciate help. Best!

Viewing 1 replies (of 1 total)
  • Changing the WordPress Address (URL) / Site Address (URL) in the General Options in WordPress did not work

    That only tells the database what to expect coming in and what to use for telling WordPress how to find things. You need to either move the contents of the /wordpress/ folder up one level — https://www.google.com/search?q=moving+wordpress — or else send your domain directly to that /wordpress/ folder:

    ## from https://my.bluehost.com/cgi/help/347#redirect
    # .htaccess main domain to subdirectory redirect
    # Do not change this line.
    RewriteEngine on
    # Change example.com to be your main domain.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteCond %{REQUEST_URI} !^/subdirectory/
    # Don't change the following two lines.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteRule ^(.*)$ /subdirectory/$1
    # Change example.com to be your main domain again.
    # Change 'subdirectory' to be the directory you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    #RewriteRule ^(/)?$ subdirectory/index.html [L]
    ## index.php for WordPress
    RewriteRule ^(/)?$ subdirectory/index.php [L]

    note: Remove ‘/wordpress’ from those settings boxes (leaving no trailing slashes) just prior to placing your edited version of the above .htaccess in your public “root” folder where your domain URL is assigned (immediately preceding the /wordpress/ folder).

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong Domain in URL’ is closed to new replies.