I
I
Ilya Pavlov2015-01-29 16:28:33
PHP
Ilya Pavlov, 2015-01-29 16:28:33

How to specify the indexing location on the server?

How to tell search engines the location (folder) where the files that need to be indexed are located? But the link is actually different, that is, the site has a page: site.ru/page.php, but its content is located in site.ru/pages/page.php . And even preferably site.ru/pages/page.inc.php, then you need to somehow allow the search engine to index these files. How? It's just that on the site, the transition through the pages goes through Ajax, so you need to shove the content of each page into a separate file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2015-01-30
@IvanCher

Robots closes from indexing. In your case it would be better to use a sitemap .
And if in a good way, then bind all ajax to urls. The ideal option, which I have been trying to follow for the last couple of years, is when clicking on the link changes the url in the browser, but the data is updated via ajax. If you follow this link, the same page is displayed as the one loaded by Ajax. In other words, when clicking on a link, there should be no difference whether js (ajax) will work or just follow the link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question