Forum Moderators: phranque

Message Too Old, No Replies

IP resolve default page apache server

         

fandangood

5:46 pm on Feb 13, 2008 (gmt 0)

10+ Year Member



Hi,
I have a dedicated server with only one domain. If i call my IP #*$!.#*$!.#*$!.#*$! from browser i see default home page of my server apache.

I would like to know if you suggest a make redirect permanent from my IP to my domain name

Thanks you in advance

jdMorgan

2:12 pm on Feb 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Generally, yes, you should redirect from all domains and IP addresses that can be used to access your site to the single domain that you want your site to be known by. This is to prevent multiple URLs from being used to reach the same page on your site; If you allow this, then your ranking in search results will be diluted -- with some of the ranking value given to each usable URL variation, instead of being focused on a single URL.

Also, if too many URLs can be used to reach the same page, then the search engines' duplicate-content filters may be tripped, also causing a loss in ranking, and very often leading to the search engines listing "the wrong URL version" for any given page.

Be careful of:

  • https versus http
  • example.com versus www.example.com
  • example.com/index.php versus example.com/
  • example.com:80/ versus example.com/
  • example.com/page.html versus example.com/page.html?some-random-query-string
  • example.com/page.php?arg1=val1&arg2=val2 versus example.com/page.php?arg2=val2&arg1=val1
    etc.

    Jim

  • fandangood

    11:43 am on Feb 21, 2008 (gmt 0)

    10+ Year Member



    Two question:

    I would like a make a redirect permanent 301 from:

    1)
    IP my dedicated server 150.150.150.150 versus ww*.mydomain.com
    IP my dedicated server 150.150.150.150/page_one.htm versus ww*.mydomain.com/page_one.htm
    IP my dedicated server 150.150.150.150/directory_one/ versus ww*.mydomain.com/directory_one/

    2)
    h*tps://mydomain.com versus h*tp://www.mydomain.com
    h*tps://www.mydomain.com versus h*tp://www.mydomain.com
    h*tps://mydomain.com/page_one.htm versus h*tp://www.mydomain.com/page_one.htm
    h*tps://www.mydomain.com/page_one.htm versus h*tp://www.mydomain.com/page_one.htm
    h*tps://www.mydomain.com/directory_one.htm versus h*tp://www.mydomain.com/page_one.htm

    What can I do? Is it possible with .htaccess or httpd.conf?

    Thank you

    jdMorgan

    3:45 pm on Feb 21, 2008 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Please see this recent thread [webmasterworld.com] to get started, then post your own code for discussion.

    Also see the links in our forum charter and the previous threads in the Apache section of the WebmasterWorld library for more information (links to these pages are shown above on this page).

    Jim