I need help with this htacces file

Discussion in 'Programming' started by goodfela, Aug 18, 2009.

  1. #1
    Hi!
    I've been using this htacess file well for the last year. But now I want to make a subdomain but my (apache/php) server says Internal server error. I talked with desk support and they told me the htaccess is making the issue. They told me to correct it but I dont know how. Can anybody tell me which line must I change?

    thanks a lot!!

    RewriteEngine On
    RewriteRule ^losrecursoshumanos.rss generarss.php
    RewriteRule ^(.+)/(.+)/ index.php?sec_activa=$1&subsec_activa=$2
    RewriteRule ^contenidos/(.*).html$ contenidos/index.php?var1=$1
    RewriteRule ^portada/? index.php?sec_activa=20
    RewriteRule ^nueva/? index.php?sec_activa=24
    RewriteRule ^noticias/? index.php?sec_activa=4
    RewriteRule ^articulos/? index.php?sec_activa=21
    RewriteRule ^revista-enlaces/? index.php?sec_activa=22
    RewriteRule ^agenda/? index.php?sec_activa=23
    RewriteRule ^cursos/? index.php?sec_activa=8
    RewriteRule ^ayuda/? contenidos/index.php?var1=2074
    RewriteRule ^publicidad/? contenidos/index.php?var1=2226
    RewriteRule ^aviso-legal/? contenidos/index.php?var1=2073
    ErrorDocument 404 /error2/404.html

    this is the site
     
    goodfela, Aug 18, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, I tried this .htaccess locally and it didn't result in a server error. You're going to have to take a look at your apache logs.
     
    premiumscripts, Aug 19, 2009 IP
  3. prasanthmj

    prasanthmj Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Could not spot any error in the htaccess.
    Perhaps some of the rule is taking it to a non existent folder/file.
    Try removing each line and testing.
    I could access the website without problem.
    Which is the URL that gives the error?
     
    prasanthmj, Aug 20, 2009 IP
  4. goodfela

    goodfela Active Member

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    try to get into subdomain this link
    it has to show the template. And I can't log in

    the htaccess works fine. But I want to create a subdomani and server people told me, my subdomain won't work because of my .htacces. I have to modify it.
     
    goodfela, Aug 20, 2009 IP