S
S
survivor20052019-06-20 22:27:21
Search Engine Optimization
survivor2005, 2019-06-20 22:27:21

How will php include paths affect SEO?

Dear forum users, I have a question. I don’t own frameworks and I built the site stupidly through include, that is, one page index.phpincludes everything in it. But my paths are index.php?id=aboutlike this. How will this affect SEO? Will the robot understand them as separate pages? And another question, here are all my pieces from which I collect a site like header.html, will they be indexed as separate pages? Or the robot will not pay attention to them because they do not have headings. Or is it still necessary to somehow prohibit them from being indexed separately? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2019-06-21
@survivor2005

Lots of questions, in order:
most likely nothing, but for an ordinary person it will be more hideous if you figure out htaccess and do it instead of
/index.php?id=about
/about
, this is done in 1 line like this

RewriteEngine On
RewriteRule ^.+$ index.php?id=$0 [L,QSA]

It will be, if the url changes, then these are different pages for the robot. Robots.txt is
responsible for setting up the index, so you can specify the necessary pages
if the robot finds it, then yes, if not, then no
so that it doesn’t find it, you can add them to robots.txt or to a folder that is closed from indexing, for example, connect them to index.php by type
where inc is a folder
, then to it you need to add .htaccess with this content
then php will be able to connect the file, but it will not be available by url and the robots will not find it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question