Redirect/block WordPress URLs with the /?p=x structure. Eg. site.com/?p=2 -


i'm building site hashed permalinks can email test.com/aedoiu2348791lkd style url client. it's provide level of privacy without need log in or dick around passwords.

unfortunately, wordpress redirects url ?p=x url structure:

so mysite.com/?p=2 redirects to mysite.com/about


obviously, hashed url pretty useless when can run through /?p=xx , see every post , page i've ever made.

is there way stop wordpress redirecting type of link , either throwing 404 or redirecting homepage?

i want page accessible "proper" mysite.com/asdfghj-page style of url.

solution ...sort of
added top of .htaccess

<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{query_string} /?p=(\d*) rewriterule ^$ *? [r=404,l] </ifmodule> 

i don't it... works. ideally redirect wordpress 404 page, however.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -