View Full Version : Search Engine Friendly URLs Problem
cameron
02-24-2004, 05:21 PM
I'm trying Method 3 from Chris's article (http://www.websitepublisher.net/article/search_engine_friendly_urls/3).
I added the following to my .htaccess file and uploaded it to my main directory.
<Files cheats>
ForceType application/x-httpd-php
</Files>
Method 1 is working fine:
http://www.god-games.com/cheats.php/7
Method 3 isn't working:
http://www.god-games.com/cheats/7
Is there something wrong with my container? Any other ideas on what the problem could be?
chromate
02-24-2004, 06:14 PM
Are you sure you've made a file called "cheats" without the .php ?
chrispian
02-24-2004, 07:00 PM
Some hosts don't allow the forcetype directive (mine doesn't).
You could do the same thing with rewrite rules if that doesn't work for you.. example:
RewriteEngine on
RewriteBase /cheats
RewriteRule ^(.*)$ http://www.god-games.com/cheats.php?id=$1
cameron
02-24-2004, 07:42 PM
Originally posted by chromate
Are you sure you've made a file called "cheats" without the .php ?
I tried to do that, but the ftp wouldn't let me. It recognized files without an extension as a directory. Then I went back and read the article and didn't notice anything about renaming the file anyway.
I tried with Cute FTP and got it working. What do I have to do to be allowed to make such a change with WS_Ftp?
cameron
02-24-2004, 07:58 PM
I just tried renaming a different file with WS_FTP and it worked. Not sure what the problem was before. Thanks for your help.
eMEraLdwPn
02-24-2004, 08:43 PM
did you already have a directory called cheats? if you did, that's why it wouldn't let you change cheats.php to cheats (same name)
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.