+ Reply to Thread
Results 1 to 6 of 6

Thread: .htaccess Help

  1. #1
    blood is offline x10Hosting Member blood is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    7

    Exclamation .htaccess Help

    please can anyone help me with .HTACCESS file im in need of it for my website to work.

    if i have it on the server my website wont load and i get internal error. with the HTACCESS File.

    this is what the file contains, please can someone help me and fix it or try to fix it.

    thanks in advanced.

    Code:
    RewriteEngine On 
    RewriteRule ^story-([0-9]*).html index.php?page=Story&id=$1 [L]
    RewriteRule ^archive-(.*)-(.*).html index.php?page=Archive&archive_month=$1-$2 [L]
    RewriteRule ^archive.html index.php?page=Archive [L]
    
    RewriteRule ^articles.html index.php?page=Articles [L]
    RewriteRule ^article-(.*).html index.php?page=Articles&action=showarticle&id=$1 [L]
    RewriteRule ^articlenav-(.*)-page-(.*).html index.php?page=Articles&action=showarticle&id=$1&nav=$2 [L]
    RewriteRule ^(.*)-(.*)-artnav.html index.php?page=Articles&action=cat&type=$1&nav=$2 [L]
    
    RewriteRule ^articlelist.html index.php?page=Articles&action=cat&type=Article [L]
    RewriteRule ^previews.html index.php?page=Articles&action=cat&type=Preview [L]
    RewriteRule ^reviews.html index.php?page=Articles&action=cat&type=Review [L]
    RewriteRule ^features.html index.php?page=Articles&action=cat&type=Feature [L]
    
    RewriteRule ^cheatlist-(.*)-(.*)-(.*).html index.php?page=Cheats&start=$1&cat=$2&nav=$3 [L]
    RewriteRule ^cheat-(.*)-(.*).html index.php?page=Cheats&action=show&game=$1&platform=$2 [L]
    
    RewriteRule ^companylist-(.*)-(.*).html index.php?page=Companies&start=$1&nav=$2 [L]
    RewriteRule ^company-(.*).html index.php?page=Companies&action=show&t=$1 [L]
    RewriteRule ^companies.html index.php?page=Companies [L]
    
    RewriteRule ^linklist-(.*)-(.*).html index.php?page=Links&action=cat&cat_id=$1&nav=$2 [L]
    RewriteRule ^link-(.*).html index.php?page=Links&action=out&id=$1 [L]
    RewriteRule ^links.html index.php?page=Links [L]
    RewriteRule ^linkcat-(.*).html index.php?page=Links&action=cat&cat_id=$1 [L]
    RewriteRule ^linknav-(.*)-(.*).html index.php?page=Links&action=cat&cat_id=$1&nav=$2 [L]
    
    RewriteRule ^medialist-(.*)-(.*).html index.php?page=Media&action=cat&cat_id=$1&nav=$2 [L]
    RewriteRule ^media-(.*).html index.php?page=Media&action=showfile&id=$1 [L]
    RewriteRule ^media.html index.php?page=Media [L]
    RewriteRule ^mediacat-(.*).html index.php?page=Media&action=cat&cat_id=$1 [L]
    RewriteRule ^medianav-(.*)-(.*).html index.php?page=Media&action=cat&cat_id=$1&nav=$2 [L]
    
    RewriteRule ^gamestatadd-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&add=$2 [L]
    RewriteRule ^gamestatrem-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&remove=$2 [L]
    RewriteRule ^gamemedia-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Media&nav=$2 [L]
    RewriteRule ^gamelist-(.*)-(.*)-(.*)-(.*).html index.php?page=Games&start=$1&cat=$2&nav=$3&genre=$4 [L]
    RewriteRule ^games.html index.php?page=Games [L]
    RewriteRule ^game-(.*).html index.php?page=Games&action=showgame&id=$1 [L]
    RewriteRule ^gameinfo-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=$2 [L]
    RewriteRule ^topgames-(.*).html index.php?page=Top+Games&cat=$1 [L]
    
    RewriteRule ^members.html index.php?page=Members [L]
    RewriteRule ^memberlist-(.*)-(.*).html index.php?page=Members&start=$1&nav=$2 [L]
    
    RewriteRule ^system-(.*) index.php?page=Console&p=$1 [L]
    RewriteRule ^online.html index.php?page=Online [L]
    
    RewriteRule ^usercp.html index.php?page=User+CP [L]
    RewriteRule ^editprofile-do.html index.php?page=Edit+Profile&edit=do [L]
    RewriteRule ^editprofile.html index.php?page=Edit+Profile [L]
    RewriteRule ^inbox.html index.php?page=User+CP&action=messages [L]
    
    RewriteRule ^search.html index.php?page=Search&exec=Search [L]
    RewriteRule ^gamesearch.html index.php?page=Search&exec=Search&t=games [L]
    RewriteRule ^cheatsearch.html index.php?page=Search&exec=Search&t=cheats [L]
    RewriteRule ^filesearch.html index.php?page=Search&exec=Search&t=file [L]
    RewriteRule ^forumsearch.html index.php?page=Search&exec=Search&t=forums [L]
    
    RewriteRule ^contact.html index.php?page=Contact [L]
    RewriteRule ^contact-thanks.html index.php?page=Contact&action=thanks [L]
    
    RewriteRule ^logout.html index.php?page=Logout [L]
    RewriteRule ^logout-yes.html index.php?page=Logout&logmeout [L]
    
    RewriteRule ^profile-(.*).html index.php?page=User+Profile&u=$1 [L]
    RewriteRule ^allshouts.html shoutbox_all.php [L]
    RewriteRule ^admin.html admin.php [L]
    RewriteRule ^admincp admin.php [L]
    RewriteRule ^company-(.*).html index.php?page=Company&action=show&t=$1 [L]
    
    RewriteRule ^topgames.html index.php?page=Top+Games [L]
    RewriteRule ^register.html index.php?page=Register [L]
    RewriteRule ^cheats.html index.php?page=Cheats [L]
    
    RewriteRule ^pages.html index.php?page=Page [L]
    RewriteRule ^page-(.*).html index.php?page=Page&action=showpage&id=$1 [L]
    
    RewriteRule ^forums.html forums.php?page=Forums [L]
    RewriteRule ^forum-(.*).html forums.php?page=Forums&show=forum&id=$1 [L]
    RewriteRule ^thread-(.*).html forums.php?page=Forums&show=thread&id=$1 [L]
    RewriteRule ^newthread-(.*).html forums.php?page=Forums&show=newthread&fid=$1 [L]
    RewriteRule ^reply-(.*)-(.*).html forums.php?page=Forums&show=reply&id=$1&fid=$2 [L]
    RewriteRule ^threadnav-(.*)-(.*).html forums.php?page=Forums&show=forum&id=$1&nav=$2 [L]
    RewriteRule ^postnav-(.*)-(.*).html forums.php?page=Forums&show=thread&id=$1&nav=$2 [L]
    
    RewriteRule ^video.html filecat-13.html [L]
    RewriteRule ^video-(.*).html video.php?id=$1 [L]
    RewriteRule ^files.html index.php?page=Files [L]
    RewriteRule ^filecat-(.*).html index.php?page=Files&action=cat&cat_id=$1 [L]
    RewriteRule ^file-(.*).html index.php?page=Files&action=showfile&id=$1 [L]
    RewriteRule ^(.*)-(.*)-filenav.html index.php?page=Files&action=cat&cat_id=$1&nav=$2 [L]
    
    RewriteRule ^submit-news.html index.php?page=Submit+News [L]
    RewriteRule ^submit-file.html index.php?page=Submit&type=File [L]
    RewriteRule ^submit-article.html index.php?page=Submit&type=Article [L]
    RewriteRule ^submitcheat-(.*)-(.*).html index.php?page=Submit&type=Cheats&game=$1&platform=$2 [L]
    RewriteRule ^submit-media.html index.php?page=Submit&type=Media [L]
    RewriteRule ^submit-link.html index.php?page=Submit&type=Links [L]
    
    php_value register_globals 1

  2. #2
    eminemix's Avatar
    eminemix is offline x10 Lieutenant eminemix is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    EU
    Posts
    349

    Re: .htaccess Help

    Can you tell us what's the error ?


  3. #3
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: .htaccess Help

    Looks like a seo script :X

  4. #4
    axyjo is offline x10Hosting Member axyjo is an unknown quantity at this point
    Join Date
    Apr 2005
    Posts
    48

    Re: .htaccess Help

    Have you tried removing a few lines at a time till it works, then adding each line back in until it doesnt work again? The last line you put in before it starts to not work is the offending line, so remove it from the equation. Thats how I usually debug my apache .htaccess files

  5. #5
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: .htaccess Help

    Code:
    php_value register_globals 1
    this is probably the offending line as x10 doesn't offer modifying php values via htaccess (I think)

  6. #6
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: .htaccess Help

    I think tht you should delete it. It will come back but maybe with the error fixed.

+ Reply to Thread

Similar Threads

  1. default .htaccess
    By Fedlerner in forum Computers & Technology
    Replies: 9
    Last Post: 09-05-2007, 09:10 PM
  2. .htaccess
    By viperfx in forum Free Hosting
    Replies: 2
    Last Post: 08-21-2007, 09:20 AM
  3. .htaccess rewrite rule
    By theblazingangel in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 03-03-2006, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers