Why is my website redirecting to www.domainname.comwww.domainname.com?
-
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.
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Www PA is 29\. Http version is PA of 21\. Should I start using the WWW one?
I think I know the answer but i need to ask anyway in case i am wrong. The www PA is 29. Http version is PA of 21. Should I start using the WWW one? A number of years ago, they hired an agency that built a ton of links to the WWW version. I should also point out that most of the site urls are for the http, so i would have to redirect all the other pages. Advice? Thanks, Nails
Intermediate & Advanced SEO | | matt.nails0 -
If I disavow bad Backlinks of my website. If, I create Backlinks again, those websites. Did that again become count in my Backlinks?
Hi, all please tell me. If I disavow bad Backlinks of my website. If, I create Backlinks again, those websites. Did that again become count in my Backlinks?
Intermediate & Advanced SEO | | sourav60 -
Redirecting an IP address
Just taken over a new client who recently moved from A.N. other platform to Shopify. I just found reference to their old website IP address and it appears to be not redirecting. Can I simply use something like Traffic Control (Shopify app) to redirect to the new domain?
Intermediate & Advanced SEO | | muzzmoz0 -
Robots.txt - Do I block Bots from crawling the non-www version if I use www.site.com ?
my site uses is set up at http://www.site.com I have my site redirected from non- www to the www in htacess file. My question is... what should my robots.txt file look like for the non-www site? Do you block robots from crawling the site like this? Or do you leave it blank? User-agent: * Disallow: / Sitemap: http://www.morganlindsayphotography.com/sitemap.xml Sitemap: http://www.morganlindsayphotography.com/video-sitemap.xml
Intermediate & Advanced SEO | | morg454540 -
Research on building links to a website
Hi building a brand new site with no domain authority. I have created all the content and now want to start building links to the website. Mostly through guest posting, niche directories, broken link building and other whitehat methods. Anyway i was wondering if anyone has seen any good research on the way you should link to a brand new website or any site for that matter. Like in terms of % you should focus at the homepage, inner pages, anchor distribution, internal link structure, etc. A good start would be looking at successful competitors, but i wanted to see if anyone knows any studies on this. My goal is to build a link profile which meets the standards of Google and that lasts! Thanks, Mark
Intermediate & Advanced SEO | | Mikey0080 -
Links on My website
I am looking to create some more trust on my website by subscribing to BBB. I have heard that my site is penalized and loses "link juice" if I place the BBB logo link in my page footer on every page of my website. Does anyone know how much I am penalized? Should I only put it on my conversion pages and maybe my main 10 sub pages? My main goal is to assist in getting conversions but I don't want to do it at the expense of getting a penalty. Any help is greatly appreciated. Thank you, Boo
Intermediate & Advanced SEO | | Boodreaux0 -
Setting up of 301 redirects
Good morning all, As part of the analysis of our website, we have realised that we are diluting our keyword strength in a particular area by having multiple zones all targeting the same keyword. We have decided to combine these zones into one, and set up 301 redirects so that the remaining zone gets the benefit of the other zones' link juice. When setting up a 301 redirect from zone "X" to zone "Y" say, do I need to keep all of the content in zone X, or should I remove all content before the redirect is set up? Does zone Y still get the benefit of zone X's link juice if the content is removed? Many thanks Guy
Intermediate & Advanced SEO | | Horizon0 -
Website rebranding, what should I worry about?
Hey guys, A client of mine will be doing a rebranding exercise, this include changing their brand name and their domain name. They are considered a well known brand within their industry (Their brand name shows up in Google's "Search Related to..." section) My question is: Apart from making sure all 301 are put in place,changing all the links to point to the new domain and doing PR exercise, is there anything else I should keep in mind / be aware of to ensure a smooth transition? Also can anyone come up with possible issues we might encounter during the move? Apart from having a significant drop in traffic and rankings? Thanks, Clement
Intermediate & Advanced SEO | | NextDigital510