Forum Moderators: phranque
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projectz/domain.com/
#TEST just a rewrite test doesn't work
RewriteRule ^file/([0-9]+)/(.+)? /file.php?f=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !^/(jobs|ci|file) [NC]
RewriteRule . /projectz/domain.com/index.php [L]
#none of the following work
#TEST jobs/etc to a index.php in jobs folder
RewriteRule ^jobs/details/([0-9]+)/([^/]+)/ /jobs/index.php[L]
#redirect these url to one of our CI controllers
RewriteRule ^jobs2/([^/]+)/([^/]+)/([^/]+)? /ci/index.php[L]
RewriteRule ^profile/([^/]+)/([^/]+)/([^/]+)? /ci/index.php[L]
RewriteRule ^file/([0-9]+)? /projectz/domain.com/file/file.php?f=
$1[L]
RewriteRule ^file/([0-9]+)/(.+)? /projectz/domain.com/file/file.php?f=
$1[L]
#other request to our WP index.php
#with permalinks in mind
</IfModule>