genzedu777 Posted August 2, 2010 Share Posted August 2, 2010 Hi guys, I have a question, I realised that when I type in my url, for example, www.abc.com, it will automatically lead to www.abc.com/index.php URL, I would like to remain the URL as www.abc.com. How do I achieve that? Thanks Wilson Quote Link to comment https://forums.phpfreaks.com/topic/209591-how-do-i-embed-indexphp-into-my-url/ Share on other sites More sharing options...
radar Posted August 2, 2010 Share Posted August 2, 2010 you could use some ajax to your navigation and forms to process your navigation, then your url would always stay the same if done correctly... Quote Link to comment https://forums.phpfreaks.com/topic/209591-how-do-i-embed-indexphp-into-my-url/#findComment-1094200 Share on other sites More sharing options...
JonnoTheDev Posted August 2, 2010 Share Posted August 2, 2010 you could use some ajax to your navigation and forms to process your navigation, then your url would always stay the same if done correctly... Way off the mark. If you mean that you are being redirected to /index.php from the root domain this is a 301 redirect at work. The only thing that could be causing this is a line in your .htaccess file / httpd conf file using a RewriteRule, or you specifically have a line of code in your script that is using a header() redirecting to index.php Use this tool http://www.internetofficer.com/seo-tool/redirect-check/ and enter your url. You will see any redirects that are at work. Quote Link to comment https://forums.phpfreaks.com/topic/209591-how-do-i-embed-indexphp-into-my-url/#findComment-1094201 Share on other sites More sharing options...
genzedu777 Posted August 3, 2010 Author Share Posted August 3, 2010 Thank you Quote Link to comment https://forums.phpfreaks.com/topic/209591-how-do-i-embed-indexphp-into-my-url/#findComment-1094574 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.