Results 1 to 5 of 5

Thread: Challenge 1

  1. #1
    Join Date
    May 2005
    Posts
    6

    Default


    There are two possible answers.
    Either this is done by mod_rewrite rule in httpd.conf file,
    or by RedirectMatch rule set in .htaccess file.
    Not sure about which one specifically, have not got time to do experiment with it!

  2. #2
    Join Date
    Jan 2005
    Location
    Nashik,India
    Posts
    24

    Default

    There is something called canonical name entry and I am not sure if that should be kept on or off to fix this problem. Please come up with your suggestion on it with logical reasoning.

  3. #3
    Join Date
    Jun 2005
    Posts
    3

    Thumbs up The correct answer

    You need to Set the following paramter in respective VirtualHost entry for that domain.

    UseCanonicalName off

    This will fix the problem.

  4. #4
    Join Date
    Jul 2004
    Posts
    16

    Default Challenge 1

    If you are accessing a directory under addon domain with http://addondomain.com/forum without trailing / and it is redirecting to
    http:///sub.maindomain.com/forum/ and if you add trailing '/' at end i.e.http://addondomain.com/forum/, it is working fine. Why it is working with trailing '/' ?

  5. #5
    Join Date
    Mar 2006
    Posts
    17

    Default Challenge1

    The probability is if you set
    Use canonical name Off in Virtual Host entry, then it will be showing correctly as addondomain.com/forum/ and if you set
    Use canonical name On in VirtaulHost entry, then it will go to sub.maindomain.com/forum. The canonical name should be set to "Off". Cannonical name is set to On ,when you want the addon domain to redirect to subdomainname.com.

    Regards,
    Megha.



    Quote Originally Posted by Admin1 View Post
    If you are accessing a directory under addon domain with http://addondomain.com/forum without trailing / and it is redirecting to
    http:///sub.maindomain.com/forum/ and if you add trailing '/' at end i.e.http://addondomain.com/forum/, it is working fine. Why it is working with trailing '/' ?

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
  •