Friday, 22 April 2016

What is .htaccess? & Where I have to place it?

What is .htaccess? & Where I have to place it?

The .htaccess file is a hidden text file that allows you to control the way visitors are able to access your site. Some common uses of the .htaccess file would be restricting access to certain files, or redirecting URLs.

Please don't think more about file name, no file name required for this -  it's simply .htaccess 
(even i wasted more time on giving file name finally found that it's simply .htaccess)

it's should be in root folder of you website

Ex: in SEO search engines will treat www.domainname.com &  domainname.com are different to avoid that
we use .htaccess file. More..


Multiple Sitemaps and Sitemap Index

The Sitemap has certain limitations. For example, it cannot contain more than 50 000 URLs and cannot be bigger than 10 MB. This is why if you plan to create a website with multiple subdirectories and Sitemaps, you will have to use Sitemap Index.
The Sitemap index allows you to include several Sitemap files under one file called Sitemap index. It uses almost the same syntax but instead of including your pages URLs, you will have to add the URLs to your Sitemaps.
Below, you can find a sample code of a Sitemap index.
<?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.domain.com/sitemap1.xml.gz</loc> <lastmod>2004-10-01T18:23:17+00:00</lastmod> </sitemap> <sitemap> <loc>http://www.domain.com/sitemap2.xml.gz</loc> <lastmod>2005-01-01</lastmod> </sitemap> </sitemapindex>
As you can see the Sitemap index file uses the following XML tags:
  • loc
  • lastmod
  • sitemap
  • sitemapindex
The <loc> and the <lasmod> tags are basically the same as in the normal Sitemap file. The <sitemap> tag encapsulates information about an individual Sitemap. The <sitemapindex> tag provides information about all of the Sitemaps in the file.Be advised that the Sitemap files can be only files located under the same domain or subdomain and should be UTF-8 encoded as well.
It is strongly recommended that you place your Sitemap into the root directory of your web server. The location of a Sitemap file determines the set of URLs that can be included in it. A Sitemap file, for example, located under a subdirectory can include links of all pages in this subdirectory, but not ones above it.

19 comments:

  1. here

    i will try to implement these thing next time thanks

    ReplyDelete
  2. Every new year is celebrated with full enjoyment. Its celebration started just after the Christmas festival. Get the latest quotes, images, hd wallpapers here from our post and get the beauty of lights celebration with the latest wallpapers on our website. New Year is the time at which a new calendar year begins and the calendar’s year count increments by one. Many cultures celebrate the event in some manner. Get the best quotes on this new year 2019, go through the complete post you will get the neccessary stuff regarding this.


    website

    ReplyDelete
  3. I just found your blog and I’ve found every article I’ve read very helpful. Moving Companies in Miami

    ReplyDelete
  4. This is a fantastic blog! Thank you so much for sharing great tips about blogging. Best Car Shipping Company

    ReplyDelete
  5. Amazing piece. There is so many lesson to be learned from this. Thankyou for sharing this kind of work author. Randomly speaking, are you looking for a direct supplier Feel free to visit our website. Thank you and God bless!

    ReplyDelete
  6. Your readers will surely engaged in your work. Very nice articulation of thoughts. Moving and inspiring. Thankyou author for sharing this. Meanwhile, you can also visit our website if you are looking for <a href="https://www.chapalang.com.ph”>direct supplier</a>. We also offer different items just for you! Thank you and Godbless.

    ReplyDelete
  7. The great information that you shared. It will help all of them. Thanks for posting. Keep maintain the updates
    Data Extraction Solutions|
    Ecommerce website builder|
    Online Educational Services|

    ReplyDelete
  8. If you Want to design a website for your business then Visit Our website or You Can Contribute also as a Guest Blogger To Know more
    Bel Technology
    Web development company in Jaipur
    Web design jaipur



    ReplyDelete
  9. Thanks for this article publish it is really helped a lot of things are learn this post so thank you again.click on this link

    ReplyDelete
  10. Toronto digital agency I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.

    ReplyDelete
  11. Social media strategy marketing Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info.

    ReplyDelete
  12. Digital Business Directory I would like to say that this blog really convinced me to do it! Thanks, very good post.

    ReplyDelete
  13. digital marketing agency in Edinburgh Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me.

    ReplyDelete
  14. Digital marketing agency newcastle I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks!

    ReplyDelete
  15. First, it provides a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof and definitions you have apply settings to specific subfolders, so I like articles like the one you made because I am learning a lot and I enjoyed reading it.
    Google Maps Citations

    ReplyDelete
  16. This post is really informative. Thank you for sharing this knowledge with us and also you can like to read : SEO

    ReplyDelete