Mobile app version of vmapp.org
Login or Join
Nickens628

: 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

@Nickens628

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Nickens628

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme