Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Jolly-Martian
Advanced Member

United Kingdom
218 Posts

Pre-sales questions only
(More Details...)

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>




dbdave
ECT Moderator

USA
10408 Posts

Posted - 11/24/2020 :  10:59:34  
You should have (if not create) a Google search console account (formerly google webmaster tools) and in there, you tell google about your site and where your sitemap is located.
That's probably the best way.

Thanks,
David

ITZAP
Ecommerce Template Guru

Australia
1017 Posts

Posted - 11/25/2020 :  21:00:40  
And your robots.txt file should contain this entry to reveal the location of your sitemap.xml file:
- - - - - - - - - - - - - - - - - - - -
User-agent: *
Sitemap: https://mywebsite.co.uk/sitemap.xml

- - - - - - - - - - - - - - - - - - - -

Gary

Jolly-Martian
Advanced Member

United Kingdom
218 Posts

Pre-sales questions only
(More Details...)

Posted - 11/26/2020 :  05:42:19  
Gary,

This is a great help.

Am i right in thinking that I should perhaps add a dissalow for vsadmin

User-agent: *
Sitemap: https://bagswithclass.co.uk/sitemap.xml
Disallow: https://bagswithclass.co.uk/vsadmin

?
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000