0

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
2
  • This is entirely possible to achieve with Drupal itself if you write your own module. Are you open to that or were you looking for a way to handle it in Drupal without writing any code? Commented May 6, 2014 at 1:37
  • Prefer via apache cconfig if possible; I have seen articles on creating Magento module; Wpuld like to avoid custom drupal work as effort and support effort are larger. Commented May 6, 2014 at 16:12

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.