How to add the URL Redirect For Drupal site?

Updated on March 29, 2019 in General Discussion
0 on March 29, 2019

Hello Guys!

I need clarification from you guys!

I have a Drupal website and need to add the URL redirection. I have tried this via Codings, but I was failed, because of the coding are not working. Can you please suggest me the right cording please….?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(main.)?$
RewriteCond %{REQUEST_URI} !^/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$$1


#custom redirects
RewriteRule ^*)$$1 [R=301,L]
#end custom redirects

Please guide me properly who are good in Drupal site.

  • Liked by
Loading more replies