Welcome Guest, Not a member yet? Register   Sign In
Mod ReWrite help...

I'm having trouble figuring out how to write my rewrite.

My ultimate goal is:

My goal for now is:

So on my site controller I have

function index($usersite, $page)

I have the index.php gone with the below ReWrite.

RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

When I go to /site it works but when I have that $usersite and $page param on the URL it gives me an internal error 500.

Any advice on the rewrite?


Theme © iAndrew 2016 - Forum software by © MyBB