: This is a case where rewrite rules would be beneficial. The SEO friendly way to do this would be to have URLs that are distinctive before the query string. You can use rewrite rules to
This is a case where rewrite rules would be beneficial. The SEO friendly way to do this would be to have URLs that are distinctive before the query string.
You can use rewrite rules to attain this. Look into mod rewrite for Apache (there are mechanisms for IIS as well).
Essentially a rewrite rule will take a URL that looks like this to a user (or a search engine):
example.com/articlenew/1
but will appear like so to your server and to php (ie. it will be rewritten):
example.com/articlenew/display.php?id=1
Your rewrite rule would look something like this:
RewriteRule ^/articlenew/(.*) /articlenew/display.php?id= [L]
You might also need to enable the module and add more directives to configure it correctly. I hope this points you in the right direction.
More posts by @Nickens628
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.