Website redirect help

chathuvv

Well-known member
  • Jun 28, 2008
    3,316
    652
    113
    අපි එළකිරි.lk කියලා gahapuhama එළකිරි.com කියන site එක load කරනවානම් කරන්නේ කොහොමද.
    Site දෙකටම administrator privileges තියනවා.

    එළකිරි කියන site eka ගත්තේ නිදසුන් විදිහට
     

    hichchiputha

    Well-known member
  • Jan 3, 2018
    40,014
    35,946
    113
    වොන්ඩර් ලැන්ඩ්
    Manually forward or mask your domain or subdomain

    Domain and subdomain forwarding lets you automatically direct your visitors to a different website.

    Masking prevents visitors from seeing your domain or subdomain forwarding by keeping your domain name in the Web browser's address bar.

    Let's look at this example of how you can configure forwarding.

    Forwarding coolexample.COM to coolexample.NET
    Forwarding Option Visitor Goes To Site Visitor Sees Address Bar Displays
    Forwarding
    Disabled coolexample
    .COM coolexample
    .COM coolexample
    .COM
    Forwarding
    w/o Masking coolexample
    .COM coolexample
    .NET coolexample
    .NET
    Forwarding
    w/ Masking coolexample
    .COM coolexample
    .NET coolexample
    .COM
    To forward or mask your domain or subdomain, you must use our nameservers. For more information, see Change nameservers for my domains.

    Required: For your domain or subdomain to forward, its A record must be pointed to 50.63.202.1.
    Note: If you want your visitors to be able to go to your domain or subdomain with or without the www prefix, you need to forward your domain name to use www.
    To forward or mask your domain or subdomain
    Looks like you're not logged in. If you log in above (under Text Icon), we can save you a couple of steps.

    Go to the DNS Management page.
    On the DNS Management page, scroll down to the Forwarding section.
    Next to Domain or Subdomain, click Add, and enter your domain or subdomain name:
    The value entered can include a period (.) but not as the first or last character.
    Consecutive periods (...) are not allowed.
    The entire value cannot exceed 25 characters.
    Under Forward to, select http:// or https://. For more information, see HTTP vs. HTTPS.
    Enter the URL you want to forward your domain or subdomain to.
    Select your Forward type:
    Permanent (301): Redirects to the site you specified in the Forward To field using a "301 Moved Permanently" HTTP response. The HTTP 301 response code tells user-agents (including search engines) that the location has permanently moved.
    Temporary (302): Redirects to the site you specified in the Forward To field using a "302 Found" HTTP response. The HTTP 302 response code tells user-agents (including search engines) that the location has temporarily moved.
    Select your Settings
    Forward only: Forwards the domain or subdomain without masking.
    Forward with masking: Prevents the forwarded domain or subdomain URL from displaying in the browser's address bar, and lets you enter Meta Tags for search engine crawlers in the following fields:
    Title - Displays at the top of the browser window and in search results (title can be no more than 80 characters)
    Description - A short description of your website to display in search engine results (description can be no more than 150 characters)
    Keywords - A list of comma-separated keywords that describes the content and purpose of your website (keywords can be no more than 500 characters)
    Note: If you want your visitors to be able to go to your domain or subdomain with or without the www prefix, you need to forward your domain name to use www.

    To automatically update your nameservers to accommodate your forwarding changes, check Update my DNS setting to support this change.
    Click Save.
     
    Last edited:

    Lakshan-Seram

    Well-known member
  • May 31, 2011
    24,754
    12,689
    113
    127.0.0.1:8080/Kandy
    PHP:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^elakiri.lk [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.elakiri.lk [NC]
    RewriteRule ^(.*)$ http://elakiri.com/$1 [L,R=301,NC]
    </IfModule>

    .htaccess file eka uda code ekath ekka elakiri.lk site root ekata upload karanna