The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Redirection with .htaccess

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #38262

    So basically I want everything on my domain ( to be redirected to or . For example, if I would enter in “” in the urlbar, it would redirect to “” or “”.

    Here are a few codes I’ve been using for similar things:

    RedirectMatch 301 ^/alpha/(.*)$$1 #Redirects /alpha to alpha

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteRule ^(.*)$$1 [R=301,L] #removes www.

    What would you use?

    – Thank’s :)!

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.