Cancelado

simple .htaccess mod rewrite help

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

<[url removed, login to view]>

I have the .htaccess file working to rewrite it like so

<[url removed, login to view]>

RewriteRule .* - [F,L]

RewriteRule ^([^/]*)\.html$ /[url removed, login to view]$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

<[url removed, login to view]>

To

<[url removed, login to view]>

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

<[url removed, login to view]>

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/[url removed, login to view] senerio (most preferable)

2. A rewrite that will work with <[url removed, login to view]> as well as my current rewrite for all th non-blog pages.

Thanks

Habilidades: Engenharia, Linux, MySQL, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: where to get seo services, seo rewrite services, right now crm, rewrite blog, htaccess, next page mod, htaccess problem, php seo rewrite, help crm, querystring php, linux need root, simple seo urls, rewrite html css, mod seo, relative simple, css rewrite html, linux simple php site, php htaccess help, rewriterule htaccess, crm simple php, css crm php, seo simple html page, simple html example images, 404 error page, php querystring

Acerca do Empregador:
( 14 comentários ) United States

ID do Projeto: #3049639

4 freelancers estão ofertando em média $46 para este trabalho

CoVaLiDiTy

See private message.

$25.5 USD in 2 dias
(302 Comentários)
7.0
oneclickdevelop

See private message.

$63.75 USD in 2 dias
(102 Comentários)
6.5
isurugiu

See private message.

$17 USD in 2 dias
(222 Comentários)
6.3
webdevdad

See private message.

$63.75 USD in 2 dias
(33 Comentários)
4.5
anamtech

See private message.

$38.25 USD in 2 dias
(1 Comentário)
0.0