Y
Y
Yoshinon Eared2018-02-21 21:20:32
Search Engine Optimization
Yoshinon Eared, 2018-02-21 21:20:32

AJAX + SEO + CNC?

Good day to all!
I get acquainted with AJAX and along the way I understand the basics of SEO optimization.
I read about the fact that you can tie the indexing to the site on AJAX through #!
The URL then becomes site.com/#!/page or something like that.
The problem is that the presence of " #! " does not suit at all, neither in the search results, nor the URL of the site itself
. the ideal option is site.com/page
Is it possible to implement this? The backend uses django + python

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2018-02-22
@Aquinary

It doesn't make much sense, it has both pros and cons.
minus you can not give a link, for example, to a specific page, at least the client cannot do this, filters are thrown off, etc., etc.
You also need to remember that Google put a copper basin on your Ajax. and index and everything behind it.
Just like Google and Yandex listen to robots.txt recommendations, but they can just as easily put on them.
the simplest option
1. robots txt disable indexing of all get parameters or whatever you have in your url.
2. sitemap
3. real canonical on all pages, in my case, if it has a get parameter, then insert a realk canonical on it without geta.
Ajax can be removed, but you can leave it.

F
Felix_vek, 2018-02-22
@Felix_vek

Good afternoon,

The URL then becomes site.com/#!/page or something like that.
The problem is that the presence of "#!" does not suit at all, neither in the search results, nor the URL of the site itself
. the ideal option is site.com/page

In all found links, the robot replaces the combination "#!" to the "?_escaped_fragment_=" parameter and accesses the changed address.
Thus, the site.com/?_escaped_fragment_=page link will be in the search engine results.
If you are not satisfied with this link option, then you should cut the get parameter _escaped_fragment_ in the .htaccess file as follows:
#RewriteCond %{QUERY_STRING} ^_escaped_fragment_=?(. *)$
#RewriteRule ^(.*)$ /%1? [NC,L]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=?(.*)$
RewriteRule ^(.*)$ /$1%1 [R=301,L]
Thus, the following link will appear in the output: site.com/ page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question