Originally Posted by Jeff Andersen
however, i can't get the url to work as mydomain.com/123 aswell as mydomain.com/123/
edit, used yours and it works LOL!
Regards & thanks
|
Use the same rule you're currently using, only add a question mark to it:
RewriteEngine on
RewriteRule ^(.+)/?$ index.php?id=$1 [L]
The question mark essentially tells the script to, for example, display the index.php?id=pagehere page for
http://mydomain.com/pagehere or
http://mydomain.com/pagehere/. I do believe that is what you are looking for. If not, let me know.