Mobile app version of vmapp.org
Login or Join
Holmes151

: 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,

@Holmes151

Posted in: #ModRewrite #Seo #Sitemap #Url #WebCrawlers

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Holmes151

1 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel560

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme