: Mod_rewrite and SEO friendliness My website has an atypical structure and I'm not sure if this could create problems in the long run, specially for SEO positioning purposes. I have a unique,
My website has an atypical structure and I'm not sure if this could create problems in the long run, specially for SEO positioning purposes.
I have a unique, large PHP script, and I use the Apache module mod_rewrite in the .htaccess file to create friendly URLs, for example:
RewriteRule ^$ /index.php?section=Main
RewriteRule ^createArticle$ /index.php?section=Main&view=CreateArticle
RewriteRule ^configuration$ /index.php?section=Configuration
RewriteRule ^article/([0-9]{1,10})$ /index.php?section=Article&view=Default&id=
RewriteRule ^deleteArticle/([0-9]{1,10})$ /index.php?section=Article&view=Delete&id=
RewriteRule ^reportArticle/([0-9]{1,10})$ /index.php?section=Article&view=Report&id=
RewriteRule ^logIn$ /index.php?section=Authentication
...
So, example.com/index.php?section=Article&view=Default&id=105 would become example.com/article/105.
The only real physical file is index.php, in which the parameters of the URL queried is processed and the corresponding result is outputted.
My question is, do the crawling robots (e.g. Googlebot) recognize these links? Do they index the resulting HTML outputted by index.php with the specified parameters as if it was a actual HTML file?
Also, would this become a problem when creating a Sitemap?
More posts by @Holmes151
1 Comments
Sorted by latest first Latest Oldest Best
Yes, crawlers will recognise, crawl and index your rewritten links as long as they are included throughout your site. You should ensure that only the re-written links are included in the source and not the non-rewritten links.
You could improve the optimisation of these links further by including the article title as part of the URL.
No problem with sitemap as long as you use the re-written URL's
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.