I'm presently creating a website (http://tannernelson.me/ehs)

It's located on Godaddy, and I am using wordpress like a Content management systems.

I wish to have the ability to make:

http://tannernelson.me/ehs/school/academics/teachers/jsmith

become

http://tannernelson.me/ehs/index.php?pagename=teachers&detail=jsmith

So, essentially, if you will find 4 segments towards the url (school/academics/instructors/jsmith) I would like the final one to become a variable. Therefore the 4th segment associated with a url would be the variable "detail"

My current URL rewrite is presently

# Mod Rewrite
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ehs/index.php [L]
Options -Multiviews

It will not work every other way, despite the default WordPress .htaccess file. And That I have no clue what which means, or what type of request URI is constructed from it. It is confusing.

Any ideas?

The code you've at this time means:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

When the asked for filename isn't (!) a normal file -f and when the asked for filename isn't (!) a directory -d then:

RewriteRule . /ehs/index.php [L]

Match any single character (.) and when a match is located rewrite the Hyperlink to /ehs/index.php and then suggest this the final rule ([L]) so don't process any more rules.

This does not seem like what you would like, but appears to become working. http://tannernelson.me/ehs/school/academics/teachers/jsmith delivers (I believe) http://tannernelson.me/ehs/index.php because I recieve a custom 404 not found page.

Try the next .htaccess code:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

# Redirect the ehs/school/academics/$1/$2 URIs to /ehs/index.php?pagename=$1&detail=$2
RewriteRule ^ehs/school/academics/([^/]+)/([^/]+)$ /ehs/index.php?pagename=$1&detail=$2 [L]

# Otherwise if the requested URI is not found (not a file nor a directory)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#Redirect everything else to index.php
RewriteRule .* /ehs/index.php [L]

Options -Multiviews

I simply examined this on my small Apache server and delay pills work.