Friday, September 23, 2011

.htaccess, have writen url rule, how do i rewrite link for change to take affeact in address bar?

Hi



My urls are as follows:



http://localhost/www.mywebsite.com/new.p

http://localhost/www.mywebsite.com/new.p

http://localhost/www.mywebsite.com/new.p

http://localhost/www.mywebsite.com/new.p





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-t





Problem: The address url bar still shows:

http://localhost/www.mywebsite.com/new.p

etc...





so i now need to rewrite my link from my main file:



print '%26lt;a href=new.php?id='.$row-%26gt;id.'%26gt;'.$row-%26gt;tit?br>




How shall i rewrite it?



I am still a php, apache, mysql newbie but getting there slowely



Thanks in advance



Tovia Singer.htaccess, have writen url rule, how do i rewrite link for change to take affeact in address bar?Get the %26quot;straight poop%26quot; on .htaccess: http://www.javascriptkit.com/颅howto/htac