.htaccess - A description for this result is not available because of this site's robots.txt – learn more For mobile version -


i created website www.example.com. created mobile version of website subdomain www.m.example.com. used htaccess file redirectiong mobile version in smartphones. put mobile website's files in folder named "mobile". put robot.txt file in main root folder prevent indexing mobile urls in search engines result. robot.txt file this.

user-agent: * disallow: /mobile/ 

i put robot.txt file in folder named mobile.

user-agent: * disallow: / 

my problem that. in desktop version result , snippets correct. when searching in mobil, result in snippet shows this.

a description result not available because of site's robots.txt – learn more 

how solve this?

by using robots.txt on www.m.example.com

user-agent: * disallow: / 

you forbidding bots crawl resource on www.m.example.com.

if bots not allowed crawl, can’t access meta-description.

so working intended.

if want pages crawled (and indexed), have allow in robots.txt (or remove altogether).

by using canonical link type, can denote 2 (or more) pages same, or have trivial differences (e.g., different html structure, table sorted differently etc.), or 1 superset of other.
using alternate link type, can denote it’s alternate representation of same content.
(you can see examples in answer on webmasters se.)


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -