Posted - 11/24/2020 : 09:11:55
Hi All,
I have the below on my .htaccess file, it was a standard layout i found online, my site still has not been crawled by Google and it has been 4 weeks, is there a more better structure I should be using for my .htaccess file, and what text should I use to alert google of my site map, i have seen online I should add "Sitemap: http://mywebsite.co.uk/sitemap.xml" will this work?
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^212\.67\.220\.105$ [NC,OR]
RewriteCond %{HTTP_HOST} ^([a-z.]+)?mydomainname\.co.uk$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B] RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteRule ^manufacturer/?$ /categories.php?man=all [QSA,nc,L,B] RewriteRule ^manufacturer/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B] RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>
|