English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

1 answers

Get the "straight poop" on .htaccess: http://www.javascriptkit.com/­howto/htaccess7.shtml

2007-12-13 04:50:46 · answer #1 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers