I want to redirect my URL [noparse]www.jobs4mind.com/forum[/noparse] to forum.jobs4mind.com . can any one get me the code to write in .htaccess file.
I have already redirected from jobs4mind.com to [noparse]www.jobs4mind.com[/noparse] will it be a problem if i use 2 redirection code in .htaccess file.
Plz Help.
It’s pretty straight forward:
Redirect 301 /forum http://www.jobs4mind.com/forum
Note that first you give the “alias” as a relative URL (ie, not including the domain), but then you give the “destination” URL in full, including protocol and domain.
There’s no problem with having multiple redirects in .htaccess (I’ve got over 200 in one of mine!), even if some of them work in chains, just as long as you haven’t got two rules giving conflicting instructions for the same URL.
Sorry Stevie i got the following error. This webpage has a redirect loop
The webpage at [noparse]http://www.jobs4mind.com/forum/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
I have written this code in .httaccess file. i am not a techy guy plz can u give the full code.
first part i used it 2 redirect from jobs4mind.com to www its working properly. what changes i need to make so that http://www.jobs4mind.com/forum/ get redirected to forum.jobs4mind.com.
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^jobs4mind.com [nc]
RewriteRule .? http://www.jobs4mind.com%{REQUEST_URI} [R=301,L]
Redirect 301 /forum http://www.jobs4mind.com/forum[/noparse]
Yes, that’s because I gave you the wrong code. The full URL there should be the one you want it to go to, ie [noparse]http://forum.jobs4mind.com[/noparse]
Thank u very much stevie it worked.