My tutorial above is meant for people who do know PHP but don't know mod_rewrite (yet). It sounds like that's not the best fit for you, so the alternative I suggest is learning about mod_rewrite.
You will create a .htaccess file. You will need to create some rules so that you can make your server treat it like you want.
Here's an example from my site for your reference. Your .htaccess file will look something like this, but you might need different rules.
Code:
RewriteEngine On
RewriteBase /somelocation/
RewriteCond %{REQUEST_URI} !^/somelocation/index.php$
RewriteCond %{REQUEST_URI} !^/somelocation/index.php/
RewriteRule ^(.*)$ index.php?$1 [L]
That basically says:
1. Use the "somelocation" directory as a base for this rule.
2-3. Check if the requested URI is not already index.php (to prevent a loop).
4. If those conditions are met, then take whatever was requested (specified by ^(.*)$) and add it to index.php? (via the variable "$1").
This might actually work for you, but you'll have to do some error checking in the PHP to make sure the submitted value is right, or at least have a default if you don't find a match.
If this does not match exactly what you need, you'll need to look into this yourself or maybe hire a designer if you need a lot of help. Generally, we're happy to help here, but if you need a project done for you then that's beyond free help (in most cases). Also, issues with mod_rewrite can be extremely hard to fix (lots of little details), especially without direct access to the server to do trial and error testing.
Bookmarks