![]() |
mod_rewrite module in Apache - xampp - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: mod_rewrite module in Apache - xampp (/showthread.php?tid=30636) |
mod_rewrite module in Apache - xampp - El Forum - 05-21-2010 [eluser]Unknown[/eluser] Hai I am using Xampp localhost. I enabled mod_rewrite in apache. When I run php, I saw mod_rewrie under the loaded module section. That means mod_rewrite was enabled. Is it?.. Then Under the htdoc folder I have created clean url folder. Here I have 3 files 1) index.php Here I put <a href="test.php?id=1">welcome</a> 2) test.php Here I displayed a welcome message. 3) .htacces Here I put rewrite rule code My objective is that when I click on the welcome hyper link the url should be localhost://cleanurl/test/1 But when I clicked I got an error message " object not found" 404 error.. I have changed the content in .htaccess after reading so many documents. But still I don't get my result. Can you please tell me what I put in .htaccess to get my result?? Or is there is any other problem? Hai I am using Xampp localhost. I enabled mod_rewrite in apache. When I run php, I saw mod_rewrie under the loaded module section. That means mod_rewrite was enabled. Is it?.. Then Under the htdoc folder I have created clean url folder. Here I have 3 files 1) index.php Here I put <a href="test.php?id=1">welcome</a> 2) test.php Here I displayed a welcome message. 3) .htacces Here I put rewrite rule code My objective is that when I click on the welcome hyper link the url should be localhost://cleanurl/test/1 But when I clicked I got an error message " object not found" 404 error.. I have changed the content in .htaccess after reading so many documents. But still I don't get my result. Can you please tell me what I put in .htaccess to get my result?? Or is there is any other problem? Hai I am using Xampp localhost. I enabled mod_rewrite in apache. When I run php, I saw mod_rewrie under the loaded module section. That means mod_rewrite was enabled. Is it?.. Then Under the htdoc folder I have created clean url folder. Here I have 3 files 1) index.php Here I put <a href="test.php?id=1">welcome</a> 2) test.php Here I displayed a welcome message. 3) .htacces Here I put rewrite rule code My objective is that when I click on the welcome hyper link the url should be localhost://cleanurl/test/1 But when I clicked I got an error message " object not found" 404 error.. I have changed the content in .htaccess after reading so many documents. But still I don't get my result. Can you please tell me what I put in .htaccess to get my result?? Or is there is any other problem? Hai I am using Xampp localhost. I enabled mod_rewrite in apache. When I run php, I saw mod_rewrie under the loaded module section. That means mod_rewrite was enabled. Is it?.. Then Under the htdoc folder I have created clean url folder. Here I have 3 files 1) index.php Here I put <a href="test.php?id=1">welcome</a> 2) test.php Here I displayed a welcome message. 3) .htacces Here I put rewrite rule code My objective is that when I click on the welcome hyper link the url should be localhost://cleanurl/test/1 But when I clicked I got an error message " object not found" 404 error.. I have changed the content in .htaccess after reading so many documents. But still I don't get my result. Can you please tell me what I put in .htaccess to get my result?? Or is there is any other problem? |