Redirect subdomain to main domain htaccess

Hi friends,
Try adding this to an appropriate place in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^prittytimes\.com$ [NC]
RewriteRule ^ http://prittytimes.com/webcrased [L,R]

As long as the requested host is prittytimes\.com, the rule will be applied. With the regex match set to ^, any URI will match and the target will be redirected to http://prittytimes.com/webcrased



If you want only specific URI requests to be redirected to /webcrased, you can tweak the ^ to something appropriate.

2 thoughts on “Redirect subdomain to main domain htaccess

  1. Collen

    Hello! Do you know if they make any plugins to help with SEO?
    I’m trying to get my website to rank for some targeted keywords but I’m
    not seeing very good results. If you know of any please share.
    Appreciate it! I saw similar blog here: Wool product

  2. hitman.agency

    Greetings! I know this is kind of off topic but I was wondering if you knew
    where I could locate a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!!

Leave a Reply

Your email address will not be published.