• Resolved lifvic

    (@lifvic)


    Hi all,

    I have been experiencing an issue from redirecting links from example.com to https://www.example.com: all links are redirected to the home page instead of the page intended. For instance: example/products is always redirected to https://www.example.com.

    What I have don so far:
    I used to set https://www.example.com as the current main site in wp-config. But I canceled that line which didn’t seem to help.

    Also from our IT support group, I found out that we have a pointer in Godaddy to point example.com to https://www.example.com. But if we cancel that pointer, example.com will become invalid.

    Please advise on what I could do with this problem.

    Thanks a million!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Too hard to say given the limited information. It could be the web server, the htacess, or a number of WP configurations. If you posted your real url, I might be able to help; or maybe if you show your .htaccess or wp-config.php (custom) configurations

    Thread Starter lifvic

    (@lifvic)

    Hi I solved the problem by adding the following lines in my htaccess:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.example.com
    RewriteRule ^(.*)$ https://www.example.com/$1 [R=permanent,L]

    Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect Issue’ is closed to new replies.