|
|
|
|
![]() ![]() |
Nov 25 2006, 08:35 PM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 138 Joined: 30-September 06 From: Iasi, Romania Member No.: 30,851 |
So here we go:
I use htaccess rules to have SEF url`s on my site..here`s my htaccess file: QUOTE <Files quiz> ForceType application/x-httpd-php </Files> <Files tour> ForceType application/x-httpd-php </Files> <Files logout> ForceType application/x-httpd-php </Files> <Files admin> ForceType application/x-httpd-php </Files> And I have those files (quiz, tour, logout etc) in my root ...according to the htaccess file, those files will be parsed as php.. The urls are like: hts.trap17.com/tour/signup , for example here`s the content of one of that files: QUOTE <?php $url=$_SERVER['REQUEST_URI']; $url=explode('/',$url); $req=$url[2]; include("index.php"); ?> now in index.php, I include the file requested: QUOTE $page=$req; $page.=".php"; include($page); The problem is: it just doesn`t work... That is, whatever url i go to, it shows me the index (but in the address bar, the url is the one I requested. :| ).. A wild guess: the ForceType Directive is not enabled...and that would be a disaster Anyway, anyone help? The site is: hts.trap17.com ...I`ve just uploaded it and it is not at all complete, I just want to test it on trap17.. Problem solved using mod_rewrite, which works just fine This post has been edited by hts: Dec 2 2006, 04:44 PM |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 13th October 2008 - 11:07 PM |