so I was wondering if something like this is at all possible.
I was hoping to change /?directory=$variable to something like /$variable
An actual example might be easier to understand. So I want <a href='/{$variable}' > to really be /?directory=$variable or in url rewite terms i guess /?page=$1
I hope this makes sense. I am really no good with rewriting. Is this even possible? I was hoping to exclude index.php on that. however if that cannot be done, and example with index.php?ect.. will work. Thanks!
Yes it’s possibile if your server/hosting supports it you can do it by creating an
.htaccessfile with:If you want to allow other directories/files to get accessed normally you should do something like:
This will capture any subdirectory like
/abcbut not/css.cssor/customsub/other fileWelcome to the world of SEO optimizer lol.