Hi,
I am using rewrite rules on my website. Something like this for example:
Now this works perfectly, http://mysite.com/jobs works as http://mysite.com/jobs.php
However when I try to add the following:
So that somthing like: http://mysite.com/jobs/1 works as http://mysite.com/jobs.php?q=1 , the url rewrite i guess works correctly but the internal includes like:
include_once("header.php");
<script src="js/script.js'></script>
goes haywire. Probably because they thing they are insite directory "1".
I am unable to understand how can I solve this issue. Probably supllying full url for include files and js files will work. But the X10 have disabled including files with http:// in them i guess.
Does any solution exists??
Imoracle
I am using rewrite rules on my website. Something like this for example:
Code:
RewriteRule ^jobs jobs.php
RewriteRule ^jobs/ jobs.php
Now this works perfectly, http://mysite.com/jobs works as http://mysite.com/jobs.php
However when I try to add the following:
Code:
RewriteRule ^jobs jobs.php
RewriteRule ^jobs/ jobs.php
RewriteRule ^jobs/([0-9]+)$ jobs.php?q=$1
RewriteRule ^jobs/([0-9]+)/$ jobs.php?q=$1
So that somthing like: http://mysite.com/jobs/1 works as http://mysite.com/jobs.php?q=1 , the url rewrite i guess works correctly but the internal includes like:
include_once("header.php");
<script src="js/script.js'></script>
goes haywire. Probably because they thing they are insite directory "1".
I am unable to understand how can I solve this issue. Probably supllying full url for include files and js files will work. But the X10 have disabled including files with http:// in them i guess.
Does any solution exists??
Imoracle