php - Links with single/double quote or space are redirecting -


am testing on localhost, htaccess shown below:

rewriteengine on  rewriterule ^user/(.*)$ pages/user.php?u=$1 [nc,l]   rewriterule ^bookmarks pages/bookmarks.php [qsa]   

if type 'localhost/project/bookmarks' or 'localhost/project/user/username' taken bookmark's page or user's page.

if added characters '({[-,._' php dissect variable, if doesn't comply page's url accepted characters echo error.

but when ' or " or space added, page redirect instead of processing '$_get' request.

book'marks or bookma'rks redirecting https://www.google.com/search?q=localhost%2fproject%2fboo%27kmarks&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-us:official&client=firefox-a&channel=fflb

how stop happening?

this not .htaccess or php. firefox offering google's search services. there number of ways fix (in ff's about:config page) might best off typing http before localhost local urls.

instead of

localhost/project/bookmarks

type in

http://localhost/project/bookmarks


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -