Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Problem With Htaccess (i Guess)...
hts
post 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 tongue.gif..
Anyway, anyone help?biggrin.gif
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 smile.gif

This post has been edited by hts: Dec 2 2006, 04:44 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Htaccess To Block Bots(7)
  2. .htaccess File In Hosting Space Modification(5)
  3. Renaming Your Url's(3)
  4. Path To /.htaccess Folder?(2)
  5. .htaccess Problem(2)
  6. Site Management Tools: Look Before You Leap!(3)
  7. Is Wildcards Allowed In Htaccess?(0)


 



- Lo-Fi Version Time is now: 13th October 2008 - 11:07 PM