I previously changed my .htaccess
file so that my 'subdirectory' (13/) can be the 'directory' I use for my main domain by adding :
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ 13/index.php [L]
Now I want to remove the .php
extensions and extensions like index.php?eventid=3
to index/something
EDIT#1[where something
is the name of that id
stored in the database]
How should I do that?
Previously, I did work in some PHP-frameworks but they already have a dedicated url
file. So I never thought much about it. But this time, I'm not using any framework, so I need to modify .htaccess
.
I looked around, but was unable to find any reliable blog/sources.
EDIT #2
My sub-directory is public_html/13/
.
ie, www.mydomain.com
redirects to www.mydomain.com/13/
Now I want to access www.mydomain.com/13/events.php?eventid=1
as www.mydomain.com/events/44