Jump to content

[SOLVED] new to mod_rewrite


pgrevents

Recommended Posts


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

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> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.