I started recently with php.
I can create a small database BUT I have a question regarding the website-links.
For instance.
the website link for my webpage, created with php is
http://www.testclaudia.com/pictures.php?id=4
I want for example: http://www.testclaudia.com/4
Is this possible ?
IT WOULD BE GREAT.
Thanks for your help and assistance.
CLAUDIA>
Create a nice looking php link, is this possible ?
Moderator: General Moderators
-
Claudia007
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 11, 2006 9:44 am
They aren't supposed to, hawleyjr.
Create an .htaccess file in the folder pictures.php is in, and put this code in the .htaccess file:
Unless your host has disabled htaccess files, that should work.
Create an .htaccess file in the folder pictures.php is in, and put this code in the .htaccess file:
Code: Select all
RewriteEngine On
RewriteRule ^([0-9]+)$ /pictures.php?id=$1-
Claudia007
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 11, 2006 9:44 am
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: