Html code for none .index
-
In the diagnostic I have several errors in Duplicate Page Content and Title. The thing is that the errors is on the same page but with "different" names. One is called http://siteX.com/ another is called http://www.siteX.com/ and the same third one is called
http://www.siteX.com/index.htmlHow do I go about changing all three sites, I have changed the /index.html one but dont know how to catch the other once. Is it possible, if it is I would like to know how?
-
An other thing.
I missed changing the example.com to my site and no it goes to example.com, even if I change it or even delete the file...still there.
I there a way to go around it?
-
I have done the following, is that correct? If it is why cant I see any directions, for ex. I put www.siteX.com/index.html or siteX.com and get the same ?
-FrontPage-
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/
RewriteRule ^index.html$ http://example.com/ [R=301,L]IndexIgnore .htaccess /.?? *~ *# /HEADER /README /_vti
<limit get="" post="">order deny,allow
deny from all
allow from all</limit>
<limit put="" delete="">order deny,allow
deny from all</limit> -
Okay, the fact you already have an .htaccess file means you should be able to try adding the rules I provided. Put them at the top of the .htaccess file and test.
-
Please take what I say below with a grain of salt, as I am very good with .htaccess, but not so great when Frontpage is in the loop. Also back up ALL files before making ANY changes for quick replace if creates a "Internal Server Error"
_vti_bin/
_vti_adm
_vti_authShould be in your structure, each with an .htaccess
add the line
Options +FollowSymlinks
to each one
Now the just add everything streamline metrics has suggested, to the current .htaccess and test
You can try adding what streamline metrics suggests, without the above steps, as .htaccess is not dependent on Frontpage, and the Frontpage extensions have nothing to do with .htaccess (from research i found on the web)
-
I am not sure what kind of server I have but this is whats in my .htaccess
-FrontPage-
IndexIgnore .htaccess /.?? *~ *# /HEADER /README /_vti
<limit get="" post="">order deny,allow
deny from all
allow from all</limit>
<limit put="" delete="">order deny,allow
deny from all</limit>How do I do it?
-
The first step would be to redirect the http://siteX.com to http://www.siteX.com or vice versa. You can easily do this with .htaccess if you have a LAMP server. Here is the code to put in your .htaccess to redirect from non-www to www (replace example.com with your site name) -
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]As for handling http://siteX.com/index.html, simply redirect that as well with .htaccess -
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/
RewriteRule ^index.html$ http://example.com/ [R=301,L]I would also suggest adding a rel="canonical" tag to your pages just in case the search engines come across URLs with parameters, such as index.html?q=1235 then they know to index only the version of the page you designated.
Hope that helps!
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
-
What to do to index all my links of my website?
Ok, i have a new website, with only 14.000 page indexed by google, but the potential is big, 1-2 million pages. What i have to do, to force somehow google to index my website faster? This is my website: https://vmag.ro/
On-Page Optimization | | TeodorMarin0 -
Ad server not indexed
Hello guys, My client is using an ad server (not sure if i am allowed to tell which one so I will not for now) installed at ads.clientsite.com. It is using noindex, nofollow for preventing Google to index it but also it is blocking like 90 000 other pages on clientsite.com to be indexed/crawled. The guy that applied the noindex tag it is no longer here so I cannot ask him about the logic behind those noindex tags. How big could be the damage to clientsite.com if I will remove the noindex tag from the ad server (ads.clientsite.com? If needed I can PM you the ad server platform we are using, Regards, Ed
On-Page Optimization | | Noriel1 -
Meta Titles On Site Different From Google Index Page
This is very embarrassing but I hope someone can help. The Meta Titles on my site are not being shown correctly on the Google site index. For example, when I got directly to the page the appropriate page title is shown obviously. However when I go view that page on Google, the title in completely different. Page title: <a class="attribute-value">Web Design, SEO, PPC, Mobile Development In Philadelphia, Bucks| Infinity Digital Agency</a> Google Shows: Our Services - Infinity Digital Agency Here is the result page. I am currently running WordPress and Yoast. Any thoughts would be greatly appreciated. https://www.google.com/search?q=site%3Awww.infinitydigitalagency.com%2Fservices%2F&ie=utf-8&oe=utf-8
On-Page Optimization | | infinitydigitalagency0 -
Index / Monthly Click Number
Hi,
On-Page Optimization | | HypermediaSystems
This is a general question, so sorry in advance if inappropriate. Once I was told, in large scale EC / Forum Site,
the following number should be around 1,
and if it is below 1, it is a good sign ... Google Indexed Page Number / Monthly ( 30days ) Click Number I was told this is just a general idea, and real world situation varies, then
if you don't have any standard, this could be a start. (not dogmatic rules, just reference) Does this sounds about right? or do you have any other formula? I was tasked to do the site wide SEO, and diagnose the general state of SEO-wellness/fitness..
and right now, the number is 1.5, so I am about to report we can do more to get more SERP presence or something... If you guys point me relevant blog article / Q&A forum, I would really appreciate. Thanks!0 -
NOINDEX, FOLLOW on product page - how about images indexing?
Hi, Since we have a lot of similar products with duplicate descriptions, I decided to NOINDEX, FOLLOW most of these different variants which have duplicate content. However, I guess it would be useful in marketing terms if Google image search still listed the images of the products in image search. How does the image search of Google actually work - does it read the NOINDEX on the product page and therefore skip the image also or is the image search completely dependent on the ALT tag of any image found on our site? Thanks!
On-Page Optimization | | speedbird12290 -
# code not detected
Hi guys, my H1 code is like but Yoast SEO and Google Page Speed keeps saying that i do not have a H1 tag in my website, Is my code wrong? Keyword | Keyword2
On-Page Optimization | | kevinbp0 -
Html to wordpress
I have an html site and most of my pages are ranking well. I want to switch to wordpress but i am afraid that i will loose ranking on my inner pages. Any thoughts? And should i do a redirect or use a html plugin
On-Page Optimization | | benjaminmarcinc0 -
Our sitemap is not indexed well
Hey there, Hope you guys can help. We get the following error: Nested indexing. Another Sitemap index refers to the index of sitemaps. The thing is that we cant find the error they are talking about. Thanks!!!!
On-Page Optimization | | Comunicare0