Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello sir when i tried to use url rewriting in php & call

localhost/job/category

then got 500
Internal Server Error


please help me

What I have tried:

i use .htaccess file following code

RewriteEngine on

RewriteRule ^category?$ category.php 


[^]
Posted
Updated 21-Mar-17 6:51am
v2

1 solution

An "Internal Server Error" means the code on the server is crashing. That's about all anyone can tell you because nobody has any clue what the code on the server is doing at the time and/or what it expects.
 
Share this answer
 
Comments
aspdotnet trick 23-Mar-17 0:24am    
when i try
localhost/job/category

then got error upon the question.
Dave Kreskowiak 23-Mar-17 8:38am    
And that means absolutely nothing. The problem is on the server side, not the client. The code on the server crashed and you haven't told us anything at all about that code.
aspdotnet trick 23-Mar-17 12:56pm    
hello sir

i want to redirect (root/categoryid/category) like
http://localhost/job/2/Employment-News

please help sir

what i do sir
aspdotnet trick 24-Mar-17 2:06am    
i got solution myself
because this error of wampserver.

when i enable url rewriting in wampserver then problem is solved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900