in Education by
I am trying to write a rule which says xyz.com/hotels_in_someplace will direct to xyz.com/test.php?place=someplace by using the following in my htaccess RewriteEngine On RewriteBase / RewriteRule ^hotels_in_([a-z]+)$ test.php?place=$1 [L] but its not working and I cant figure out why, I am running a wamp server as a dev. when i tried to run xyz.com/test.php?place=someplace (without the htaccess in the directory) it works but I suspect there's something my rule which is wrong. additional: whoops....my dumb *** mistake, mod_rewrite wasnt enabled... JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Try it without the end-line anchor ($) RewriteRule ^/hotels_in_([a-z]+) /test.php?place=$1 [L] Also, did you allow the .htaccess files to be parsed?

Related questions

0 votes
    So, I was trying to upload PHP files into Apache server, and whenever I browse the file I get 403 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    So, I was trying to upload PHP files into Apache server, and whenever I browse the file I get 403 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    It's big problem to convert mod_rewrite rules to lighttpd format JavaScript questions and answers, JavaScript ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I need to find a way to force Apache to ask users for credentials for each ressource they ask for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I have a server from AWS EC2 service running on Linux Ubuntu and I have installed Apache, PHP, and MySQL. I have ... How to fix this? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm trying to set up a rewrite rules for a website, but there is one issue so far. At the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    On which of the following approach A basic line following robot is based? a) Applied approach b) Weak approach c) Strong approach d) Cognitive approach...
asked Jan 15, 2023 in Education by JackTerrance
0 votes
    Which of the following terms IS NOT one of the five basic parts of a robot? (a) peripheral tools (b) end effectors (c) controller (d) drive Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    Which of the following terms IS NOT one of the five basic parts of a robot? (a) peripheral tools (b) end effectors (c) controller (d) drive Please answer the above question....
asked Oct 2, 2022 in Education by JackTerrance
0 votes
    How is weight vector adjusted in basic competitive learning? (a) such that it moves towards the input vector (b ... moves away from output vector Please answer the above question....
asked Aug 27, 2022 in Education by JackTerrance
0 votes
    What consist of a basic counterpropagation network? (a) a feedforward network only (b) a feedforward network with ... ) none of the mentioned Please answer the above question....
asked Aug 26, 2022 in Education by JackTerrance
0 votes
    Identify the incorrect pair in every set, correct it and rewrite. (a) Magna Carta - England (b) Veto - ... Bharati Case - Basic structure doctrine Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Explain Basic Structure Doctrine. Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Identify the incorrect pair in every set, correct it and rewrite. (a) Kesavananda Bharati Case - Basic Structure of ... (c) Certiorari - Writ Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Briefly discuss the basic ideas of Morgenthau’s realist approach Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
...