Apache Server configuration support - Problems in loading page using mod rewrite

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2006 > Problems in loading page using mod rewrite





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems in loading page using mod rewrite
kanthi

2006-07-21, 7:36 am

Hi,
i am redirecting pages using mod rewrite it redirecting correctly but
in is not including styles and images rest of the page is displayed
normally.
can you help me regarding this

frizzle

2006-07-22, 7:22 pm


kanthi wrote:
> Hi,
> i am redirecting pages using mod rewrite it redirecting correctly but
> in is not including styles and images rest of the page is displayed
> normally.
> can you help me regarding this


Hard to tell without code, but if youre redirecting every request for
your domain to let's say index.php, you're also redirecting requests
for images etc.

So if .htaccess looks (something) like this:


RewriteEngine On
RewriteBase /

RewriteRule ^(index\.php)$ - [L]
RewriteRule ^(.*)$ index.php?$1 [L]



Add the next rule after "RewriteBase /"

RewriteRule ^((img|swf|js|css)/.*)$ - [PT]

Wich will allow any requests for the "img"-folder, "swf"-folder etc. to
Pass Trough

Frizzle.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com