Url error after searchs made.Please help!

Discussion in 'Programming' started by Glo-con, Jan 20, 2007.

  1. #1
    Hello,
    when i do a search on my site (wwwdotlinkraindotcom) that shows some results, for example "real estate" i will have a list of categories. When i click on one of these categories the URL will be wwwdotlinkraindotcom/Real_estate but page shown is wwwdotlinkraindotcom.

    If i now click on another category, for example Real_estate again, the URL will be wwwdotlinkraindotcom/Real_estate/Real_estate and so on.

    This only happens if i click on a category AFTER i made a search that gave some results as an output.I think it has something to do with the htaccess file but i can't figure out the error.

    Please help
     
    Glo-con, Jan 20, 2007 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Please post the content of your .htaccess file and you can also try asking at PHP Link Directory's support forum, since you have the paid version, you'll get access to additional forums and I am sure they can help.
     
    Colleen, Jan 21, 2007 IP
  3. Glo-con

    Glo-con Peon

    Messages:
    1,428
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I asked the PHP Link Directory support forum but they answer once every 2 days and they don't have any idea how to solve the problem. And i paid 10$ to get into that forum....

    Anyway, here is my htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule (.*)detail/link-(.*).htm[l]?$ detail.php [QSA,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [QSA,L]
    Code (markup):
     
    Glo-con, Jan 21, 2007 IP
  4. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Make the link instead of like <a href="Real_Estate">Real Estate</a> be <a href="/Real_Estate">Real Estate</a>
    The backslash will make it go to the root of the site everytime, instead of a subfolder/file in that same directory.
     
    projectshifter, Jan 21, 2007 IP
  5. Glo-con

    Glo-con Peon

    Messages:
    1,428
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks,
    i will try it as soon as my control panel works again.I tried to install a mod and now i have big trouble lol
     
    Glo-con, Jan 22, 2007 IP
  6. Glo-con

    Glo-con Peon

    Messages:
    1,428
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Problems solved by updating Category cache.Thanks to all who tried to help me :)
     
    Glo-con, Jan 23, 2007 IP