I wanted to redirect old domain to a new domain with a subpage
example: olddomain.com redirect to newdomain.com/subpage
here is what I have in my .htaccess
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "https\:\/\/newdomain\.com\/subpage\/" [R=301,L]
but it's redirecting to the newdomain.com instead of newdomain.com/subpage
olddomain.com
is redirecting tonewdomain.com/
instead ofnewdomain.com/subpage/
? – Amit Verma