pgrevents Posted May 31, 2009 Share Posted May 31, 2009 I am using codeigniter as my php frameworks and the initial file is web.php in the main directory. I have tried the examples for mod rewrite but its not what I am trying to achieve. instead of http://www.website.com/web.php/ / i am looking for the mod_rewrite to do this http://www.website.com/ how would I go about this ps: extensive google work already done lol thanks Link to comment https://forums.phpfreaks.com/topic/160320-solved-new-to-mod_rewrite/ Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 Really? Can I see some code you tried from those extensive Google searches? Link to comment https://forums.phpfreaks.com/topic/160320-solved-new-to-mod_rewrite/#findComment-846017 Share on other sites More sharing options...
pgrevents Posted May 31, 2009 Author Share Posted May 31, 2009 Sure. This is the one I have been trying to make work but it isnt how I want it too <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /web.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ web.php?/$1 [L] </IfModule> <IfModule !mod_rewrite.c> ErrorDocument 404 /web.php </IfModule> Link to comment https://forums.phpfreaks.com/topic/160320-solved-new-to-mod_rewrite/#findComment-846019 Share on other sites More sharing options...
pgrevents Posted May 31, 2009 Author Share Posted May 31, 2009 scrap that figured it out myself seems there was a typo thanks Link to comment https://forums.phpfreaks.com/topic/160320-solved-new-to-mod_rewrite/#findComment-846021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.