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 Quote Link to comment 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? Quote Link to comment 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> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.