3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by ak47carbon
0

work.php is file in webdirectory no i do not want any redirect i want to hide my complete url

0

OK, now I get it. Apache rewrite rules in .htaccess is probably what you're looking for. Thing is, if you just type in the base url (www.example.com), how will your site know which page to serve if you set all your pages to that?

People usually route all their page requests though the index.php file and 'prettify' their urls to virtual folders, e.g.

www.example.com/index.php?page=work will become www.example.com/work/

However trying to do this:

www.example.com/work.php => www.example.com
www.example.com/about.php => www.example.com
www.example.com/another.php => www.example.com

Will cause confusion. Imagine you bookmarked www.example.com - where should it go? SEO would be another issue. Something to avoid.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.