htaccess rewrite different folder url, two index files
Posted
by
Andrew
on Server Fault
See other posts from Server Fault
or by Andrew
Published on 2012-10-26T01:26:54Z
Indexed on
2012/10/27
17:03 UTC
Read the original article
Hit count: 327
I've been searching for awhile now and haven't found anything that comes close to what I'm trying to accomplish.
Right now my URL's look like this:
www.website.com/something
which are using the root folder /index.php
Now I have created plugins within folders:
/plugins/PLUGINNAME/index.php
I want to be able to have URLs like:
www.website.com/plugins/PLUGINNAME/anything/iwant/here
which are all using /plugins/PLUGINNAME/index.php
and not the root directory index.php
.
Currently www.website.com/plugins/PLUGINNAME/
works, but anything after /PLUGINNAME/xxx
defaults to the /index.php
.
© Server Fault or respective owner