I'm betting with an apparent problem here I'm not seeing.

Here's the key bits for individuals individuals acquainted with Mod-Rewrite

.htaccess file with mod-rewrite rules is available here: http://www.thedomain.com/.htaccess User would go to this URL: http://www.thedomain.com/test/blog Mod-Rewrite rules should really tell the server to gain access to this URL: http://www.thedomain.com/index.php?page=blog


Options FollowSymLinks
Options -MultiViews
RewriteEngine on
RewriteRule ^test/([^/.]+)$ /index.php?page=$1 [L]

This mixture of code/request doesn't work. If you are curious about the code snippet ^test not ^/test rather, for the reason that apparently this can be a problem on GoDaddy, the code fails using the / following the ^ - this appears enjoy it might be associated with my problem, which I'll explain further... Basically alter the .htaccess code line:

RewriteRule ^test/([^/.]+)$ /index.php?page=$1 [L]


RewriteRule ^test([^/.]+)$ /index.php?page=$1 [L]

(just getting rid of the / here: ^test/([^/.]+) )

The code works once the asked for URL is transformed to accomodate (take away the slash http://www.thedomain.com/testblog) because the user sights the correct index.php?page=blog server response. It appears in my experience I am unable to use any slashes inside the darn match side from the RewriteRule. What gives?

Update: If whatsoever relevent, this .htaccess file and also the relevant files towards the question all appear in a subdirectory from the GoDaddy server that's hosting this even though domain indicates the subdirectory because the root. Unsure if this sounds like relevant.

Update: This server (in the server root) is really running wordpress with pretty Web addresses enabled plus they work perfectly fine. I suppose wordpress uses mod-rewrite to create crazy web addresses like thedomain.com/2008/11/15/the-article-title.html work...?

Thanks a lot.

Is RewriteBase what you are searching for?

there's a pleasant test utility for home windows here


try altering your code to:

^/test/([^/]+)$ /index.php?page=$1 [L]

or without slashes

^test[^a-z]+([a-z]*)$ /index.php?page=$1 [L]

I had been not able to locate a solid method for this problem on GoDaddy for reasons uknown I possibly could not have access to slashes inside the URL which was trying to become rewritten besides the base (http://www.somedomain.com/testingthis works but http://www.somedomain.com/testing/this died).

I wound up rather while using Wordpress .htaccess to transmit all non-existant file/directory demands to my index.php. Then i used the $_SERVER['REQUEST_URI'] var with pathinfo() to parse the URL after which direct what content to load in the parsing. This is effective, is fast, and it is most likely exactly the same method Wordpress uses.

Just attemps!