SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question 301 Redirection to Solve Canonical Issue

    Hello Friends --
    i created .htaccess file to solve canonical Issue. where i should put in my server. "what is Root ?" i am using godaddy server ...

    please give me suggestion to solve problem

    if any one know correct coding. please tell me my website made in HTML and ASP.net

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Hi dallaslane. Welcome to the forums.

    where i should put in my server. "what is Root ?"
    The root directory/folder of your site is the main, public container—the folder that contains all your public files—which basically means the folder where your site's home page is located. An htaccess file that is placed there applies to all pages in the site.

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    On my server the root is in public_html. Here is the code your looking for. http://www.websitecodetutorials.com/...-to-folder.php

    To edit your htaccess just change it to htaccess.txt and edit with notepad. Then change it back to .htaccess before uploading.

  4. #4
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

  5. #5
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    dk,

    Both Ralph and Eric gave answers to your question but they may be moot depending upon:

    1. If you're using .asp files, there is an Apache module for that but it's better hosted on a WinDoze server (in the IIS family). Please confirm that you're using an Apache server as different members of the IIS family treat mod_rewrite quite differently (as M$ is trying to emulate this great Apache module).

    2. Is GoDaddy now allowing you to use mod_rewrite within .htaccess? A few years ago, they had not (and that was only a small part of their reputation as a VERY BAD host - balancing their reputation as a very good domain name registrar).

    In any case, you may want to run through the test of both .htaccess and mod_rewrite I have in my signature's tutorial to be sure it's available to you.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •