Help me with Directory!

Discussion in 'PHP' started by santhana, Dec 6, 2007.

  1. #1
    I have a problem with the script. when I test it as subdomain in another domain name, it works so fine, but when i confi. it to the main domain which is www.directoryhi.info . the first page is ok, but if you start to click on any Category it will appear error page. Anyone has solution on this?
     
    santhana, Dec 6, 2007 IP
  2. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #2
    How can we help if you do not paste your code.
     
    Kaizoku, Dec 6, 2007 IP
  3. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    what kind of code do you want?
     
    santhana, Dec 6, 2007 IP
  4. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #4
    this is a error of ".htaccess" file... please this file... and your problem will be solved...
     
    infogle, Dec 6, 2007 IP
  5. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Thank you my friend, let me see if It is the problem!
     
    santhana, Dec 7, 2007 IP
  6. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Not sure what to do with it, I would be appreciated if you can help:


    #php_flag session.use_trans_sid off
    AddType application/x-httpd-php .xml
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^payment/$ payment/index.html [L]
    #RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ links.php?pageNum_lista=$1&totalRows_lista=$2&categ=$3&link=$4 [L]
    RewriteRule ^(.*)/(.*)/(.*)/$ list.php?pageNum_lista=$1&totalRows_lista=$2&categ=$3 [L]
    RewriteRule ^(.*)/(.*)/(.*)/(.*).html$ category.php?pageNum_lista=$2&totalRows_lista=$3&category=$4 [L]
    RewriteRule ^(.*)/(.*)/(.*).html$ links.php?pageNum_lista=$1&totalRows_lista=$2&categ=$3 [L]
    RewriteRule ^(.*)/(.*).html$ details.php?ucat=$1&wseoname=$2 [L]
    RewriteRule ^(.*)/(.*)/$ /changebid.php?name=$1&ucat=$2 [L]
    RewriteRule ^(.*)/$ category.php?category=$1 [L]
    RewriteRule ^(.*).html$ list.php?categ=$1 [L]
     
    santhana, Dec 7, 2007 IP
  7. kreoton

    kreoton Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    does your hosting provider enabled mod_rewrite?
     
    kreoton, Dec 7, 2007 IP
  8. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #8
    well, let me explain, I test in as sub domain like: www.misskhmer.tv/directoryhi and the script is 100% working perfectly. but when I confi. to the main domian name www.directoryhi.info it appear to be error with the category. I don't know why?
     
    santhana, Dec 7, 2007 IP
  9. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It doesn't work in both of those links you supplied, it looks like your host does not support mod_rewrite.
     
    Gawk, Dec 7, 2007 IP
  10. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #10
    santhana, Dec 7, 2007 IP
  11. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #11
    you dont have to do anything... you just place the .htaccess file in the root folder of the script this file must be given to you with the script... just place this file

    that's it
     
    infogle, Dec 7, 2007 IP
  12. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #12
    Well, my friend my webdeveloper already done that, but it still not working!:D
     
    santhana, Dec 7, 2007 IP
  13. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #13
    okay... just do this... reupload... all files in your ftp... including your .htaccess file and then again do the installation... i hope it will work...

    but just delete the current installation...

    ---OR----

    in your .htaccess file just do this

    as you have -------- "RewriteEngine on" just put off

    and tell me if it works
     
    infogle, Dec 7, 2007 IP
  14. santhana

    santhana Active Member

    Messages:
    1,518
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #14

    I try to put off already, but still. I will delete all and re upload and hope it will work. Thank you so much, and I will let you know when I finish upload. maybe tomorrow, it is kinda late in here 2:41 am in California. Thank again.
     
    santhana, Dec 7, 2007 IP