Mehdi Fanai
Mehdi Fanai

Reputation: 4059

how to redirect a link in my website to an external link?

I have provided a link from my web site in my andoird app which is:

www.mysite.com/support

And i want this link to be redirected to:

www.anothersite.com

i have already tried com_redirect and entered support as source and http://ww.anothersite.com but i dont get any redirects and i get 404 error.

I am running Joomla 3.x and i want to know how i can do this with URL rewrites and no external components.

Upvotes: 0

Views: 2738

Answers (1)

Olèp
Olèp

Reputation: 449

It seems not possible to do it within the Joomla backend (i tried many combination of menu items and the redirect module). For sure you can write your redirect directly in your .htaccess (if you are using it) like this:

RewriteEngine On    # Turn on the rewriting engine
RewriteRule    ^support/?$    http://www.anothersite.com/    [R=301,NC,L]    # Permanent Move

or

RewriteEngine On    # Turn on the rewriting engine
RewriteRule    ^support/?$    http://www.anothersite.com    [R,NC,L]    # Temporary Move

More info about URL rewriting and .htaccess are here: http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

Upvotes: 2

Related Questions