0

I need to redirect all subdomain requests like anytext.bday.life to bday.life/index.php

I tried the following code on my htaccess file but it doesn't work.

Is there any solution for this?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.bday\.life
RewriteRule ^(.*)$ http://bday.life/index.php?name=$1 [L,NC,QSA]
Rahul Gupta
  • 9,775
  • 7
  • 56
  • 69
Aqu Akhil
  • 49
  • 5

0 Answers0