T
T
tenaro2014-10-07 18:47:04
Search Engine Optimization
tenaro, 2014-10-07 18:47:04

htaccess - what counts as duplicates?

site for 5 pages without cms.
trimmed ".php" from pages via htaccess.
now all pages are available at two addresses
- site.ru/cat
- site.ru/cat.php
is this considered a duplicate? what to write in robots.txt in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Andreevich, 2014-10-09
@reffy

You can close all .php files in robots:
Disallow: *.php
But you should only do this if you don't have any .php pages that should be in the index.
You can also use .htaccess to redirect from all name.php to name (i.e. a redirect with a url with an extension to a url without an extension). It's easy to google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question