Welcome to WebmasterWorld Guest from 54.162.226.212

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

error in alias please help

help with alias

     
1:07 pm on Apr 8, 2010 (gmt 0)

5+ Year Member



hi guys

please help me in this problem

i have a subdomain on my main domain , i want to redirect it to main domain

for example :

http://download.example.com/index.php

redirect to

http://www.example.com/index.php

without change the address in address bar

i tried this

alias / /home/myuser/public_html


in .htaccess file and i uploaded it to (download) dir

but it give me "internal server error"

i cannot understand the problem

thanks for your time

[edited by: jdMorgan at 4:38 pm (utc) on Apr 8, 2010]
[edit reason] Please use example.com only. See Terms of Service and Charter. [/edit]

1:15 pm on Apr 8, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I want to redirect it to main domain

without change the address in address bar


A redirect will always change the URL. A redirect tells the browser to make a new request for a different URL.

You'll need a rewrite if the URL isn't to change; however do be aware that serving the same content at multiple URLs will be an indexing and ranking disaster.

You should redirect non-canonical URL requests to the canonical form, and then that URL - and only that URL - should return the content.
1:29 pm on Apr 8, 2010 (gmt 0)

5+ Year Member



thank you very much for your quick reply

but i cannot understand this point

You should redirect non-canonical URL requests to the canonical form, and then that URL - and only that URL - should return the content.
1:41 pm on Apr 8, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Instead of the same content being available at A, B, C, D and E, make it so that only of those serves the content and all the others are redirected to that one.
4:40 pm on Apr 8, 2010 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



To clarify, this is a very bad idea: "without change the address in address bar" as doing so will create the duplicate-content problem that g1smd is warning you about, possibly ruining your search engine rankings.

Jim
8:44 pm on Apr 11, 2010 (gmt 0)

5+ Year Member



g1smd
jdMorgan

thank you very much for your help

best regards
 

Featured Threads

Hot Threads This Week

Hot Threads This Month