CodeIgniter Forums
Question on using .htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Question on using .htaccess (/showthread.php?tid=44111)



Question on using .htaccess - El Forum - 08-03-2011

[eluser]Unknown[/eluser]
Hello:

I'm working on a code-igniter based site at http://mith.umd.edu/theatrefinder and need to change the .htaccess rules to hide some /class/function/ID paths.

Here's the problem: When clicking on the About section from the main page, the URL changes to http://mith.umd.edu/index/about. We want this to be http://mith.umd.edu/about, essentially taking out the 'index' portion of the URI. I've been bumping around http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html trying to familiarize myself with RewriteRule in .htaccess, but I find myself just scratching my head.

Anyone have any advice or tips?

Thanks,
Grant


Question on using .htaccess - El Forum - 08-03-2011

[eluser]Unknown[/eluser]
Whoops - let me correct something:

We want the .htaccess file to direct http://mith.umd.edu/theatrefinder/index/about to: http://mith.umd.edu/theatrefinder/about


Question on using .htaccess - El Forum - 08-03-2011

[eluser]cryogenix[/eluser]
good read: http://www.farinspace.com/codeigniter-htaccess-file/