I've been working with the likes of CSS, HTML, PHP, Javascript, etc. and I've just started using my .htaccess .
My page's URL looks like this:
example.com/directory/?id=1
I want it to look like this:
example.com/directory/1
I tried this:
Since I'm new to this, I wouldn't know if there's even anything wrong with this code or the syntax.Code:RewriteEngine On RewriteRule ^directory/\?id=(.*)$ directory/$1
Can someone help me please?
------
Edit: Scratch that I just learned how to do it properly. No need for help now :P


Reply With Quote
Bookmarks