Question

I want to strongly discourage users from accessing a specific page in Drupal. I cannot do via configuration. Can it be done via apache redirect in htaccess file? or other technique?

example

http://example.com/lang/user/register

redirect to

http://172.19.0.31/lang/pageNotFound

however if they type

http://example.com/lang/user/SecreditRegisterPage

they will get

http://example.com/lang/user/register
Was it helpful?

Solution

don't think u can use a redirect rule with your scenario cause it would create a redirect loop eg secretregister redirects to user/register which redirects to pagenotfound

But there are contributed drupal modules that you can use to easily change the default drupal paths eg Rename Admin Paths

also from security perspective and to avoid spambots, captcha module would be helpfull at least for user registration page

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top