today i was trying to add search functioality to my site. my site actually display analysis reports for websites like google.com but what if user enter simply google so i thought why not to add search function that display results on keyword google.
well i added search.php to my site and for keywords like google it works fine but if user enter domain name in search.php like http://www.daniweb.com then search.php mixup with my analysis report making php page , but its too strange that search.php which is mixup have no source code displayed when i view page source code ,
problem url :: http://www.w3db.org/q/http://www.daniweb.com

i do not know where am making mistake i did everything i can do but still same problem am facing
i think there is somehting wrong with my .htaccess
my .htaccess
RewriteRule www.(.) analysis.php?dom=$1
RewriteRule q/(.
) searchfun.php?key=$1

please help in finding me the error

6 Years
Discussion Span
Last Post by nova37

i solved the problem almost ..... php code is 100% ok problem is with .htaccess file which is sending http://www.daniweb.com to both pages ....


ok problem solved ............. i just forget to add one slash in my .htaccess file ....
probelm :: RewriteRule q/(.) searchfun.php?key=$1
solution :: RewriteRule /q/(.) searchfun.php?key=$1

somethime we humans become blind and not see things which are infront of our eyes :D

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.