So I really don’t know or understand much with htaccess. I am trying to do a simple url rewrite for a blog type thing. I want to take a url like amecms.com/view-article.php?article=whatever-whatever and make it show like amecms.com/article/whatever-whatever. I can get it to rewrite technically I guess but I think because of the added article/ in the url the page is not figuring out the directory correctly and isn’t finding my css file and other files to include.
You can check out what I mean amecms.com/articles.php and choose a article. Here is the rewrite rule I have so far.
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^article/(.*)$ ./view-article.php?article=$1
Any help is appreciated.