hi i am playing with one script and that has a .htaccess file. i have understood almost complete code of that file except the following lines. RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^profiles/([^/]+)/([^/]+)?$ /profile.php?u=$1$2 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^profiles/?$ /profile.php [L] Code (markup): i just need to know what this code is doing as per my understanding it should behave some thing like if i access a url like www.somedomain.tld/profile.php?u=Uname&q=show url will be re-writen as www.somedomain.tld/profiles/Uname/show/ but i know i am wrong. can any one please explain me what is the logic of above .htaccess code. thanks akashif
It rewrites the url's it's code for mod_rewrite it will make your script generate search engine friendly url's
hi i know it will re write the urls , but my question is what will be final url after re writing if above code is in .htaccess file. anyway thanks reply thanks akashif
http://www.javascriptkit.com/howto/htaccess.shtml http://evolt.org/ultimate_htaccess_examples http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#gen5 http://forums.digitalpoint.com/showthread.php?t=23044 xino