07-27-2023, 10:22 AM
Sorry for what is probably a simple thing, but not for me...
I need to redirect all requests for the domain root to a specific page on my wordpress site, without breaking everything else. What I've been trying so far is:
RewriteCond %{HTTP_HOST} !^mydomain\.com/my-target-page/$ [NC]
RewriteRule ^
It does indeed redirect to the url mydomain/my-target-page/ , but it doesn't resolve to anything. I think that wordpress doesn't work with this, and I'm not even close, but can't wrap my head around what I should do here. Help!
I need to redirect all requests for the domain root to a specific page on my wordpress site, without breaking everything else. What I've been trying so far is:
RewriteCond %{HTTP_HOST} !^mydomain\.com/my-target-page/$ [NC]
RewriteRule ^
[To see links please register here]
[R=301,L]It does indeed redirect to the url mydomain/my-target-page/ , but it doesn't resolve to anything. I think that wordpress doesn't work with this, and I'm not even close, but can't wrap my head around what I should do here. Help!