Forum Moderators: phranque
I am trying to use clean urls like these below,
* [localhost...]
* [localhost...]
* [localhost...]
The problem is that the files do not reside on the DOCUMENT ROOT, so here is the directory structure I have,
htdocs
+--- public_html
+--- --- dev
+--- --- --- admin
+--- etc ---
The index.php file directory path is /htdocs/dev/admin/ so when I use for example
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)/?$ index.php [L]
I get using $_SERVER['REQUEST_URI'] the following
/dev/admin/blog/create/
Where I actually just want to have /blog/create/ so what changes do I need to make to the .htaccess file to?
So, what I want is just to remove the directory path it's self from $_SERVER['REQUEST_URI'] so I just have
* /blog/create/
* /blog/modify/123/
* /blog/search/date/2006/04/10/
Kind of lost at the moment and I can't decide exactly the problem so I can't find a solution :(