I am having a problem with my .htaccess file with the goal of SEO friendly URLs.
I have a page like this with a page= querystring
<[login to view URL]>
I have the .htaccess file working to rewrite it like so
<[login to view URL]>
RewriteRule .* - [F,L]
RewriteRule ^([^/]*)\.html$ /[login to view URL]$1 [L]
The problem comes in when I have a rewrite where they is another querystring variable in which it would seeingly require a subdirectory
Example
<[login to view URL]>
To
<[login to view URL]>
RewriteRule ^([^/]*)/([^/]*)\.html$ /?page=$1&id=$2 [L]
The problem with this one is that the complex CRM I have for the site right now has it where all the js, css and images are relative and since this looks like it is in another directory none of the images, css or js get loaded.
My next attempt was this rewrite
RewriteRule ^([^/]*)\.html$ /?page=blog&id=$1 [L]
To try to get the "blog" pages to show up like this in the root directory
<[login to view URL]>
That just throws a 404 error.
So, what I need is either
1. A rewrite to where all my images,js, and css elements load with the the /blog/[login to view URL] senerio (most preferable)
2. A rewrite that will work with <[login to view URL]> as well as my current rewrite for all th non-blog pages.
Thanks