Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Trying to redirect all subdomains to main page
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Trying to redirect all subdomains to main page

Trying to redirect all subdomains to main page 12 years ago #28304

Hi all,

For some reason google keeps finding odd subdomains that I haven't created like:

m.mysite.com

and

forum.mysite.com

Is there any way of using JomSEF to redirect these subdomain URL's to go straight to www.mysite.com?

Right now when I type those subdomins in, I get my homepage, but my URL stays forum.mysite.com

I'd like it to simply direct to the url www.mysite.com.

Can you help me do this?

Thank you in advance!

Ray.
The topic has been locked.

Re: Trying to redirect all subdomains to main page 12 years ago #28307

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
JoomSEF cannot do this, you need to edit your .htaccess file to achieve what you want. But you can use the Edit .htaccess page in JoomSEF and there use the Advanced Edit button in Toolbar to edit the .htaccess file conveniently directly from Joomla backend.

Find the following line:
RewriteEngine On

And insert the following code just after it:
RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný