Hi
My urls are as follows:
http://localhost/www.mywebsite.com/new.php?id=1
http://localhost/www.mywebsite.com/new.php?id=2
http://localhost/www.mywebsite.com/new.php?id=3
http://localhost/www.mywebsite.com/new.php?id=4
my .htaccess file in root:
RewriteEngine On
RewriteRule ^id/([^/]*)\.html$ /www.traffic4dummies.com/new.php?id=$1 [L]
I confirmed rewrite works, using the scripts:
http://www.wallpaperama.com/forums/how-to-test-check-if-mod-rewrite-is-enabled-t40.html
Problem: The address url bar still shows:
http://localhost/www.mywebsite.com/new.php?id=1
etc...
so i now need to rewrite my link from my main file:
print 'id.'>'.$row->title.'';
How shall i rewrite it?
I am still a php, apache, mysql newbie but getting there slowely
Thanks in advance
Tovia Singer
2007-12-13
04:42:31
·
1 answers
·
asked by
jam
5
in
Computers & Internet
➔ Programming & Design