Results 1 to 6 of 6

Thread: Search Engine Friendly URLs Problem

  1. #1
    Registered
    Join Date
    Feb 2004
    Location
    Ontario, Canada
    Posts
    273

    Search Engine Friendly URLs Problem

    I'm trying Method 3 from Chris's article.

    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?

  2. #2
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    Are you sure you've made a file called "cheats" without the .php ?

  3. #3
    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:

    Code:
    RewriteEngine on
    RewriteBase /cheats
    RewriteRule ^(.*)$ http://www.god-games.com/cheats.php?id=$1

  4. #4
    Registered
    Join Date
    Feb 2004
    Location
    Ontario, Canada
    Posts
    273
    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?

  5. #5
    Registered
    Join Date
    Feb 2004
    Location
    Ontario, Canada
    Posts
    273
    I just tried renaming a different file with WS_FTP and it worked. Not sure what the problem was before. Thanks for your help.

  6. #6
    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)

Similar Threads

  1. Search Engine friendly urls ?
    By Dan in forum Search Engine Optimization
    Replies: 6
    Last Post: 02-11-2004, 06:26 PM
  2. IIS 4.0 + Search Engine Friendly URL's
    By Stevens in forum Website Programming & Databases
    Replies: 14
    Last Post: 02-03-2004, 08:51 PM
  3. are iframes search engine friendly?
    By grichards in forum Search Engine Optimization
    Replies: 1
    Last Post: 01-04-2004, 10:58 AM
  4. Search Engine Friendly URLS
    By dolphin in forum Search Engine Optimization
    Replies: 8
    Last Post: 12-01-2003, 09:01 PM
  5. Search Engine Friendly URL's - Directives
    By Mike in forum Website Programming & Databases
    Replies: 18
    Last Post: 11-19-2003, 10:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •