views:

112

answers:

0

It would be absolutely awesome if someone could help me out here.

I have a domain, let's call it "example.com". I have wildcard subdomains setup and working great. The only problem is I can't get htaccess to see anything else like subdomain.example.com/profile/some_name/some_id_number/. In fact, I can type any garbage after the domain and it will still just show me the home screen.

Here's what's in my htaccess file now:

Options +FollowSymLinks 
Options +Indexes
Options -Multiviews

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/app/index.php
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com
RewriteRule (.*) /app/index.php?user%1 [L]

I can see why that wouldn't work yet, but I wanted to add something similar to the following:

RewriteRule ^profile/([^/]+)/([^/]+) /app/index.php?page=profile&username=$1&user_id=$2 [nc]

But it's not working at all. The server doesn't even really show signs that it's even seeing it there. Any ideas?