I'm trying to rewrite a url but I can't seem to make it happen.
I just want one working example so I can move on to all pages of my website.
So I have this link:
www.domain.com/article.php?id=1 And I can to change it to:
www.domain.com/article/1/ That's ok for now, later I'll replace the number with the article title.
This is what I have on my .htaccess file:
RewriteEngine On # Turn on the rewriting engine RewriteRule ^article\.php\?id=([0-9]+)$ article/$1/ What is wrong it it? I heard that the .htaccess file needs to be in ASCII if using FTP to save in on the server but I don't know how to do it since I created it by myself.
RewriteRule (IncomingPath.*) LocalPath?$1