Answer the question
In order to leave comments, you need to log in
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.php
includes everything in it. But my paths are index.php?id=about
like 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
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]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question