I am using apache server on my mac, everything works well.
Now I have a webpage, whose index.php is quite complex: In index.php, it expects url like: localhost/~username/hostname/page_a. And the content of page_a is actually a .php file stored in content folder. So in index.php, it just parses page_a, and do a include: '' to render the request page.
But In .htaccess, the redirect rule was not properly configured.
For example, if I click a link: localhost/~username/hostname/page_a, is there any way to redirect this url to index.php, and at the same time, the url will still be localhost/~username/hostname/page_a, so that index.php can parse and render it correctly?
Thanks.