top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

php links doest work when im using mod rewrite

0 votes
47 views

i starting to use mod rewrite but all my images or js links doest work
my current query string is:

index.php?r=blog&page=2

i want to change it with this:

/blog/2

this is my .htaccess file

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1&page=$2 [L]

but none of my js or css cant find

I need a way with php to make urls

posted Jun 1, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

2 Answers

0 votes

Try to add

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

that should exclude existing files and directories from rewriting...

answer Jun 1, 2013 by anonymous
0 votes

This is more of an apache question. You can try below url.
http://lmgtfy.com/?q=mod_rewrite+exclude+css

answer Jun 1, 2013 by anonymous
Similar Questions
+1 vote

I am trying to execute the following but he does not execute me well. Which will be able to be the problem?

$sql = "insert into scele (codigo, nombre) values (?, ?)";
$param = "1, Test1";

$tr = ibase_trans(IBASE_WRITE,$this->cn);
$qr = ibase_prepare($tr,$param);
$this->rs = ibase_execute($sql,$param);
if ($this->rs){
 //Evaluate this condition, but he does not enter here 
}
+2 votes

When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in non english is displayed in a gibberish format.
Is anyone here has an idea how to solve this problem?

+1 vote

I'm trying to pull the password policy response message from ldap_bind() method: password is expiring, password expired etc.

While checking the packet content from OpenLDAP after ldap_bind() request, with Wireshark, there is a control hooked to the ldap_bind() response, were the message code and message text about password expiration is, but I can't manage to parse that message from response.

I set the password policy request server control before the bind with ldap_set_option(). Any workaround or what am I doing wrong?

0 votes

I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web server in FastCGI mode on WinXPSP3.

An earlier version of this application works. The current version causes a 500 Internal Server Error. There is no entry in PHP's (fully active) error log. I cannot decipher Abyss's logging, so I cannot determine if a clue was reported by Abyss or not.

The current version works on a different system (Server 2003, PHP 5.3.5-TS-VC6 (Apache module), Apache 2.2).

What I would like to have is a method of getting PHP to report in some undeniable manner, short of total system failure, what it doesn't like about whatever killed it.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...