Hrm. |
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
Hrm. |
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. |
|
|