Jump to content
xisto Community
Sign in to follow this  
hts

Problem With Htaccess (i Guess)...

Recommended Posts

So here we go:
I use htaccess rules to have SEF url`s on my site..here`s my htaccess file:

<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:

<?php$url=$_SERVER['REQUEST_URI'];
$url=explode('/',$url);
$req=$url[2];
include("index.php");
?>

now in index.php, I include the file requested:

$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?:rolleyes:
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 Xisto..

Problem solved using mod_rewrite, which works just fine :rolleyes:
Edited by hts (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.