Jump to content

Mod Rewrite Problem


ionik

Recommended Posts

This works on my localhost but when i upload it to my server to test it I get a Internal Server Error what would be causing this?

I cannot figure this out...  ??? ???

 

heres the rewrite i have

 

apache version is 1.3

 

# ERROR DOCUMENTATIONS
ErrorDocument 404 /dev/index.php?page=404

# START REWRITE ENGINE
RewriteEngine on
Options +FollowSymLinks

# GAME FILTER PARSER

# These will only be called one time we dont catergorize 
# games as http://site.com/game/etc we set a cookie for that

# Game Filter 
RewriteRule ^game_filter/([0-9]+)?$ index.php?page=game_filter&game_id=$1 [N]

# Main 
RewriteRule ^/([A-Za-z-_0-9]+)/?$ index.php?page=$1 [N] 

# News 
RewriteRule ^/([0-9]+)?$ index.php?p=$1 [NC,L] 
RewriteRule ^news/([A-Za-z]+)?$ index.php?page=news&func=$1 [NC,L]
RewriteRule ^news/view_news/([0-9]+)?$ index.php?page=news&func=view_news&news_id=$1 [NC,L]
RewriteRule ^news/post_comments/([0-9]+)?$ index.php?page=news&func=post_comments&news_id=$1 [NC,L]
RewriteRule ^news/post_comments/([0-9]+)/([0-9]+)?$ index.php?page=news&func=post_comments&news_id=$1&quote_id=$2 [NC,L]
RewriteRule ^news/view_news/([0-9]+)/([0-9]+)?$ index.php?page=news&func=view_news&news_id=$1&p=$2 [NC,L]
RewriteRule ^news/delete_comment/([0-9]+)?$ index.php?page=news&func=delete_comment&comment_id=$1 [NC,L]
RewriteRule ^news/delete_comment/([0-9]+)/1?$ index.php?page=news&func=delete_comment&comment_id=$1&confirm=1 [NC,L]
RewriteRule ^news/edit_comment/([0-9]+)?$ index.php?page=news&func=edit_comment&comment_id=$1 [NC,L]

# User

RewriteRule ^user/([A-Za-z_]+)?$ index.php?page=user&func=$1 [NC,L]

# Shows a user login with username prefilled 

RewriteRule ^user/login/([0-9]+)?$ index.php?page=user&func=login&userid=$1 [NC,L]


## Account Validation

RewriteRule ^user/validate_account/([0-9]+)/([A-Za-z-_0-9]+)?$ index.php?page=user&func=validate_account&userid=$1&validation=$2 [NC,L]

# Profile Views They are done By two ways CLan Members and Regular users CM = /players Users = /members

RewriteRule ^users/members/(.*)?$ index.php?page=profile&user=$1 [NC,L] 
RewriteRule ^users/players/(A-Z0-9_-]+)?$ index.php?page=profile&user=$1 [NC,L] 


# Roster

# Matches

# Forums

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.