First of all, I know some of y’all get bugged when people come on with zero posts, post for help, and never show up again. Hopefully I don’t come off like that. I’m active all over the web, but it just happened to be my first time registering here.
I have a script & site that I paid a programmer a while back (whom I have no more contact with) to construct.
At that point, everything was working fine. I had to shut down the site for what is now almost two years, and now I’m working on relaunching it.
I’m not sure if it’s due to some PHP or server upgrades by HostGator (Shared Hosting) or what, but a couple things seem to be broken.
The problem
While all or most the links in the server are PHP,the programmer made it so they would appear as HTML/.shtml
Therefore, all the main links in the website are linked to .SHTML, and now that I’m relaunching the site, they come up as 404’s…
I could simply change the hyperlinks to the .PHP extension which is physically in the server, but that will only fix the basic links.
Part of my site is a list of “offers”
One of the functions is to catagorize the way they show up.
i.e.: “Free” and “Not Free” for Catagory
Order By “Name” or “Value”
and Finally, Direction “Ascending” or “Descending”
Default would be Free, Value, Descending. Which is what shows up in the main .php file.
However, If I were to change it to ascending, it would hyperlink to this page: offers-1-2-POINTS-ASC.shtml
Even if I were to not change any of the values, but just switch to Page 2: offers-2-2-POINTS-DESC.shtml
All those .SHTML links bring up a 404 error by HostGator.
The Solution
Has anybody experienced this before? I can’t seem to find a solution to this.
These are the portions of script I found pertaining to this specific function.
[php] function changeOrder()
{
var page = document.getElementById(‘page’).value;
var cat = document.getElementById(‘cat’).value;
var order = document.getElementById(‘odr’).value;
var method = document.getElementById(‘met’).value;
var url = 'offers-' + page + '-' + cat + '-' + order + '-' + method + '.shtml';
window.location = url;[/php]
[php] function changeFilter()
{
var cat = document.getElementById(‘cat’).value;
var order = document.getElementById(‘odr’).value;
var method = document.getElementById(‘met’).value;
var url = 'offers-1-' + cat + '-' + order + '-' + method + '.shtml';
window.location = url;[/php]
Anyone have any idea, please?
If you need anything else, please let me know.
Thank You,
Kevin