Hi guys..
I want to rewrite my url from http://www.exmpl.com/foo/bar/test/123/ to http://www.exmpl.com/foo/bar/test.php?id=123...
I read many tutorials..
In that they all say about url's like http://www.exmpl.com/foo.php?id=123..
Please help me..
Please post a .htaccess sample file which does this, if possible.
Thanks in advance..
url rewriting
Moderator: General Moderators
Re: url rewriting
RewriteEngine On
RewriteRule /foo/(.*?) /foo.php?id=$1
now /foo/1 will be rewritten to /foo.php?id=1
First you must understand regex to understand rewrites.
RewriteRule /foo/(.*?) /foo.php?id=$1
now /foo/1 will be rewritten to /foo.php?id=1
First you must understand regex to understand rewrites.
Re: url rewriting
Moved to "Installation and Configuration".
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.