Log In · Register

 

Help Topic Rules and Requirements

For a list of all requirements and guidelines pertaining to posting a new Help topic, please click here.

This Month's Contests | Staff Member of the Month | Hosts Looking for Hostees | Hostees looking for Hosts | BigBookofResources

Submission Guidelines

 
Reply to this topicStart new topic
Hrm.
Mikeplyts
post Jun 13 2010, 02:38 AM
Post #1


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



Okay, so, I ditched trying to rewrite shit in Apache for now. I tried using a much simpler PHP version.

CODE
<?php
if (substr($_SERVER['REQUEST_URI'], -1) == '/') {
    $uri = rtrim($_SERVER['REQUEST_URI'], '/');
    header('Location: ' . $uri);
}
?>


Basically, it's just to remove the trailing slash of a directory (I know, kind of stupid/odd, but it's what the client wants). And it works just fine, sort of. I keep getting a message from the browser that the page isn't redirecting properly and that "it detected that the server is redirecting the request for this URL in a way that it will never complete."

So, any ideas on what could be the issue? Thanks.
 

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: