My URLs look like “/pages.php?page=pageName” because I am using a database to supply the page’s content. Does rewriting URLs to something like “/pageName” help search engines find the pages? If so how do I rewrite them?
My URLs look like /pages.php?page=pageName because I am using a database to supply the
Share
It probably doesn’t help a crawler to find the pages, but it may have a positive impact in how it’s going to rank them, as better URIs get usually better ranking (other things being equal, of course). It’s also good to have them permanent.
See Cool URIs don’t change
About how you have mod_rewrite in Apache world and some other options in IIS world.
Example (Apache’s syntax):
That will pass everything in the URI after the domain name (there’s a caveat regarding the trailing slash) to pages.php as a page parameter.
This is
will return the content as served by