Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 25, 2008 - Time to Vote for the August 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 05:57:27 AM


Login with username, password and session length


Pages: 1 [2]   Go Down
  Print  
Author Topic: How To Make URL's not case sensitive  (Read 8447 times)
kerokura
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


WWW
« Reply #15 on: October 06, 2006, 04:09:56 AM »

sorry...but how do you add it to that .htaccess directory? for me, it says "can't find a valid editor to open this file"...I don't know what I'm doing>_<
Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #16 on: October 06, 2006, 06:24:42 AM »

the .htaccess file is a plain text file, so you should be able to open it in any text editor, for example notepad.

hope this helps
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
Kaladar
Space Explorer
***
Offline Offline

Posts: 7


« Reply #17 on: December 18, 2006, 06:06:43 PM »

Works great, thanks. Is there any way to get rid of the end / in the URL? That is , if I forget to put the last slash at the end, I get an error message. Cheers.
Logged
RandyT
Global Moderator
Über Jedi
*****
Offline Offline

Posts: 2559


Amy's Personal Assistant


« Reply #18 on: December 18, 2006, 06:27:39 PM »

it needs Usecanonicalname for that domain to be turned off in httpd.conf . Please submit a ticket to support@lunarpages.com and we can take care of that for you.

Hope this helps,
RandyT
Logged

Randy T.
tegralens
Spacescooter Operator
*****
Offline Offline

Posts: 39


« Reply #19 on: November 02, 2007, 08:07:18 AM »

I get this error when I did the changes.
Parse error: syntax error, unexpected T_IF in /home/angel20/public_html/404.php on line 5
Anyone know why.
Logged
Dr_Test
Trekkie
**
Offline Offline

Posts: 10


« Reply #20 on: June 24, 2008, 05:54:25 AM »

Same as above. Any ideas?
Logged
Vitalian
Spaceship Navigator
*****
Offline Offline

Posts: 75



« Reply #21 on: June 24, 2008, 08:13:09 AM »

For some reason the PHP code is displayed funny. It looks like certain characters were encoded...

Make sure you have
Code:
<?php
$lower 
strtolower($_SERVER['REQUEST_URI']);
$new 'http://' $_SERVER['HTTP_HOST'] . $lower;

if (
file_exists(ltrim($lower'/')) && $_SERVER['PHP_SELF'] != $lower){
header("Location: $new");
exit;
} else {
echo 'Page not found';
}
?>

I just changed all the character codes to real characters. It seems to work on my account.
Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM