The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Why is my website redirecting to www.domainname.comwww.domainname.com?

    Why is my website redirecting to www.domainname.comwww.domainname.com?

    Intermediate & Advanced SEO
    2 2 478
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JohnParker2792
      JohnParker2792 last edited by

      It seems as if a website i have just started working on has a major issue where the 404 page isn't set up properly.

      When you go to a page that doesn't exist it redirects like this.. "www.domainname.comwww.domainname.com"

      How can i fix this?

      Cpanel Host.

      Very old version of joomla and virtuemart.

      I looked at the visitor flow and about 200 visitors monthly that are dropping because of this.

      1 Reply Last reply Reply Quote 0
      • HandsomeWeb
        HandsomeWeb last edited by

        Check in the root directory for a file called .htaccess

        A typical way of listing the 404 redirects in the file is like this:

        ErrorDocument 404 /404-error-page.php

        If you don't see a line that starts with "ErrorDocument" then Joomla or Virtuemart are causing the problem.  If it is an old version of Joomla, it needs to be updated anyway for security reasons.  If the line seems messed up in the .htaccess file, you can at least send it to a working page like this:

        ErrorDocument 404 /index.php

        Maybe that will at least send it to the front page.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Moving html site to wordpress and 301 redirect from index.htm to index.php or just www.example.com
          zeehj
          zeehj
          0
          4
          1.3k

        • Not appearing when www.domainname.com.au is searched
          KristinaKledzik
          KristinaKledzik
          0
          2
          50

        • Would you redirect Website A to Website B, when Website B is in the middle of a HTTP=>HTTPS migration?
          jeremycabral
          jeremycabral
          0
          3
          62

        • SEO question regarding rails app on www.site.com hosted on Heroku and www.site.com/blog at another host
          Anward
          Anward
          0
          3
          847

        • Our website www.turbocupones.com dropped drastically in ranking today
          sebastiankoch
          sebastiankoch
          0
          7
          239

        • How do i redirect www.domain.com/ to www.domain.com/index.php
          Dr-Pete
          Dr-Pete
          0
          3
          1.3k

        • Duplicate Content http://www.website.com and http://website.com
          KeriMorgret
          KeriMorgret
          0
          6
          683

        • Redirecting multiple websites to a single website
          FrankWickers
          FrankWickers
          0
          5
          1.1k

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy