Let’s assume I have a website “www.mywebsite.com“. I have a folder named “foo” and another folder named “bar” inside “foo”. In “bar” folder, I have “aydin.php” file.
So, URL looks like this:
www.mywebsite.com/foo/bar/aydin.php
But, I want it to look like this:
www.mywebsite.com/bar/aydin.php
or
www.mywebsite.com/abc/aydin.php
How can I achieve this?
You can use URL Rewriting with .htaccess file. You can find some information here