gerkintrigg Posted July 12, 2012 Share Posted July 12, 2012 Hi All. When I have mod-rewritten my URLs, the login AJAX box seems to find it hard to reach my login page. Have a look at http://www.truro.com and then search for something. When the search results come up, you can still click login and it works fine, but if you then visit the searched page (now a re-written URL) and click on "login" then the AJAX includes fine (i tested it with a hello world script and it's including that file okay, but it's not loading the login page. An example of a page it doesn't work on: http://truro.com/pages/Information~pages/Feock.html Do you have any suggestions? I put this post here because I think it's possibly the best fit. Quote Link to comment https://forums.phpfreaks.com/topic/265569-page-not-found-within-a-redirected-page/ Share on other sites More sharing options...
PeoMachine Posted July 12, 2012 Share Posted July 12, 2012 I think the path to the file is wrong. Your login page (login.php) in on the root folder ? If yes, when you call the ajax, try to pass '/login.php' instead 'login.php'. Quote Link to comment https://forums.phpfreaks.com/topic/265569-page-not-found-within-a-redirected-page/#findComment-1361079 Share on other sites More sharing options...
gerkintrigg Posted July 12, 2012 Author Share Posted July 12, 2012 I can't see the logic as to why this would work, but it certainly seems to. Thanks very much! Neil Quote Link to comment https://forums.phpfreaks.com/topic/265569-page-not-found-within-a-redirected-page/#findComment-1361093 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.