I have a URL structure like this
http://domain.com/page/thing1
http://domain.com/page/thing2
http://domain.com/page/thing3
I want to:
- remove /page/ from the URL
- serve up content from /page/thing1
I am using ExpressionEngine, so here's what I do to remove index.php from the URL
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>