Mod_Rewrite problem in subdomain, PHPLD directory

Discussion in 'Site & Server Administration' started by seovault, Aug 23, 2006.

  1. #1
    Hello,

    I working on a niche directory, well I think that if I wouldn't have encountered this little problem It would be already up and running.

    directory.singerselect.com - It's jewelry niche directory.

    If you'd take your time to check this url thoroughly, you will surely notice that something is wrong with mod_rewrite ( check any subcategory in example ).
    Additional paths are being added to url and link takes two clicks to get to where it is pointing.

    It's probably because the directory is located in folder/subdomain.
    It works on phpld v2.0.

    Here's .htaccess from the directory folder:

    I browsed through every post on phpld's forum that might have contained the solution, unfortunately with no result.

    I have check the DNS addresses and they seem to be fine - all pointing to the same ip address. My hosting is on godaddy.com.

    One more thing that may help here is that I have set automatic redirect to index.php on every 404 error page.

    If I can't solve it I will either have to host on another account in main folder or remove SEO friendly urls.

    I will really appreciate any hints as for what to do.

    Seovault


    ---- EDITED ----

    Also, I have another .htaccess file in root directory that managed mod_rewrite for another site, don't think that it can colide though when there's another one in subdomain's folder.

    mod_rewrite seems to be working ok when directory is accessed from directory.singerselect.com/directory/ or from singerselect.com/directory/
     
    seovault, Aug 23, 2006 IP
  2. fatinfo guy

    fatinfo guy Peon

    Messages:
    586
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding this to the ROOT/.htaccess file.

    RewriteCond %{REQUEST_URI} ^/directory/.*$
    RewriteRule ^.*$ - [L]
    PHP:
    If the requested URL starts with /directory/ then stop processing the ROOT/.htaccess rewrite in the ROOT. Now the /directory/.htaccess can do whatever it wants.

    It might work.
     
    fatinfo guy, Aug 23, 2006 IP
  3. seovault

    seovault Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I did just as you wrote, but that's still not it.
    .htaccess from ROOT must be fine...

    Hm, I think that maybe godaddy makes something wrong with subdomains.
    Maybe assiging directory.singerselect.com to singerselect.com/directory/ in .htaccess would help ?
     
    seovault, Aug 23, 2006 IP