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….?
1)

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

2)

#custom redirects
RewriteRule ^http://sdfsec.org/(.*)$ http://www.sdfsec.org/$1 [R=301,L]
#end custom redirects

Please guide me properly who are good in Drupal site.

  • Liked by
Reply
Loading more replies