954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Page Refresh Problem

Site link: http://www.stmatthias.co.uk

Basically, what i find is that whenever i try to refresh any page on my site, it takes you to the index.php

There is also an issue that when i go on a page, say the about us page, it still says www.stmatthias.co.uk , instead of www.stmatthias.co.uk/about.php/

Any page entered in other than www.stmatthias.co.uk brings up the index page, and there is no custom 404 page which say if you type in www.stmatthias.co.uk/nonexistantpage.html comes up,

Thanks for your help,
Hope i made myself clear, not sure what i have done for this to happen,

Awilson089
Newbie Poster
15 posts since Apr 2011
Reputation Points: 10
Solved Threads: 1
 

Have you got some js to redirect ppl to the home page? Or maybe some server side member validation that locks visitors out until the "log in"?

Maybe your hosting provider has a permissions issue for your site, or you set one up and forgot. It could be a number of things that we, on this side cant tell.

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

Try commenting this section of js with a comment like so:

/*
<script src="js/login.js">
// Login Form
$(function() {
var button = $('#loginButton');
var box = $('#loginBox');
var form = $('#loginForm');
button.removeAttr('href');
button.mouseup(function(login) {
box.toggle();
button.toggleClass('active');
});
form.mouseup(function() {
return false;
});
$(this).mouseup(function(login) {
if(!($(login.target).parent('#loginButton').length > 0)) {
button.removeClass('active');
box.hide();
}
});
});
</script>
*/


and see what thats does.

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

Actually, thats not the cause at all. I think its the frameset you're using. All pages have the same URL if you click through the menu to your other pages. The URL stays the same. hmmm not sure what to tell you at this point.

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

its highly confusing, were are self hosting on a mac server, and im not sure what the settings are, ill take a look into the login as it may be a possibility.

Awilson089
Newbie Poster
15 posts since Apr 2011
Reputation Points: 10
Solved Threads: 1
 

I think the problem might be the frameset itself. It's src attribute is always set to "http://stmatthias.dnsalias.com" which retrieves the homepage. Regardless of whichever link you click, when the page loads it will come to the frameset part and retrieve the page pointed to by the src attribute.
So, i think if you really want to keep your frameset in your html, then in each of your .php pages, change the frameset src attribute to the respective php file.
eg. In about.php change the the frameset src to "about.php", etc
Try that and inform us.

wilch
Junior Poster in Training
84 posts since Aug 2007
Reputation Points: 25
Solved Threads: 17
 

I dont understand which part of the document is related to the frameset, i tried researching it but i am unsure.

Awilson089
Newbie Poster
15 posts since Apr 2011
Reputation Points: 10
Solved Threads: 1
 

Hey. Tried your site. All seems fine to me. Is it a particular browser you are using?

zobadof
Junior Poster
141 posts since Dec 2009
Reputation Points: 3
Solved Threads: 7
 

Im using Chrome, i tried it in opera and IE9. Same issue in both. What are you using?

Awilson089
Newbie Poster
15 posts since Apr 2011
Reputation Points: 10
Solved Threads: 1
 

I see no issue here. I am using Chrome.

zobadof
Junior Poster
141 posts since Dec 2009
Reputation Points: 3
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: