nxzmplty
07-22-2011, 05:41 PM
I'm not sure if I need mod_rewrite. I've read lots of tutorials but I can't get my head around this.
I have my home page, www.domain.com
I have my scripts folder, www.domain.com/scripts
I have my index.php, in the base directory which detects the URL.
Therefore, I want EVERY SINGLE URL to redirect run index.php
Let's say the URL is www.domain.com/signup/validate/hGjsopfE
This would process in index.php, and within that PHP script will check the first piece of the URL (signup) and include, say, register.php [this is just to show that the URL does not necessarily mean the actual script name].
At the moment I have only got the following in my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteRule . index.php
I'm getting a 500 error.
I have my home page, www.domain.com
I have my scripts folder, www.domain.com/scripts
I have my index.php, in the base directory which detects the URL.
Therefore, I want EVERY SINGLE URL to redirect run index.php
Let's say the URL is www.domain.com/signup/validate/hGjsopfE
This would process in index.php, and within that PHP script will check the first piece of the URL (signup) and include, say, register.php [this is just to show that the URL does not necessarily mean the actual script name].
At the moment I have only got the following in my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteRule . index.php
I'm getting a 500 error.