Web Special Files

Create these Web Special Files in the root folder

.htaccess

Contains the permanent 301 redirect to unify your website with and without “www” + Names the Error page + Redirects pages

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com : Unify URLs
RewriteRule (.*) http://www.domain.com/$1 [R=301,L] : Unify URLs
ErrorDocument 404 /error-page.html : Error page Name
redirect permanent /old.html http://www.domain.com/new.html : Redirect pages
: (repeat for more redirects)

 

Generate your .htaccess

sitemap.xml

File that lists the URLs for your website

<?xml version=”1.0″ encoding=”UTF-8″ ?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
    <url>
        <loc>http://www.domain.com/page.html</loc> : Existing page
        <priority>0.9</priority> : Page Priority 0 to 1
        <lastmod>2013-12-31</lastmod>
        <changefreq>weekly</changefreq>
    </url>
    … : (repeat for more pages)
</urlset>

 

Generate your sitemap.xml

robots.txt

File that lists files and folders that Google Spider should not crawl + Names the Sitemap

User-Agent: * : Applies to all Robots
Disallow: /folder/ : Folder
Disallow: /file : File
: (repeat for more foldres/files)
sitemap: http://www.domain.com/sitemap.xml : Sitemap Name

 

error-page.html

File containing the 404 error page message

favicon.icon and favicon.gif

Small Icon to appear on top of the pages with this code in the head

<link rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon” /> : favicon.ico
<link rel=”shortcut icon” href=”favicon.gif” type=”image/gif” /> : favicon.gif

 

Generate your favicon.ico

 


Contact me about: Web Special Files, by:

  
  WhatsApp    Email