apache - access folder and image on page rewriting by htaccess -
i little bit confuse url rewriting...
i have rewritten contact.php page contact.html...
rewriterule ^contact.html/?$ contact.php [nc,l]
and it's working fine when wordpress
rewriterule ^contact/contact.html/?$ contact.php [nc,l]
it's working css , image not called on page.
i have tried
rewritecond %{request_filename} !-f
but it's not working.
i want know if there condition in .htaccess file handling wordpress pages do.
there several code works me. because haven't posted actual error in question. give try..
1} can try in <head>
section of pages support relative path image/css/js files referenced on page:
<head> <base href="http://www.example.com/static-files/" /> </head>
reference @ http://www.w3.org/tr/html4/struct/links.html#h-12.4
2} link css files relative root directory sample:
<link rel="stylesheet" type="text/css" href="/css/****.css">
3} try in .htaccess
rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewritecond %{request_uri} !^.*\.(css|jpe?g|gif|png|js|ico)$ [nc] rewriterule ^(.*)$ index.php?url=$1 [qsa,l]
Comments
Post a Comment