I am moving an existing static directory to wsn links. The directory has been online for several years and I don't want to miss out on existing traffic and search engine listings. The Static File Generation seems to be a great solution but I continue to get errors. It works fine until I get several urls & filenames added. Then it locks up and seems to reset my htaccess permisions. I have to go to my host to reset the permissions and I loose the static files I've generated.
Is there a limit to the number of urls? Also, some of the existing page names contain a '-'. Is that a possible problem?
Couldn't you use an htaccess to make the old static urls show the dynamic content? Would be a lot of trouble if there are a lot of them I suppose, but at least you'd have a dynamic site.
Then it locks up and seems to reset my htaccess permisions.
I don't see what htaccess has to do with static pages (other than that it could be a better solution than them). Nor do I see what a duplicate would have to do with anything.
I will try the htaccess method you suggest. All I really know is everytime I try to set up static pages it changes the permissions for the domain and gives the following error message:
"Forbidden You don't have permission to access /alaska.htm on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.bedsbreakfastsandinns.com Port 80"
The permissions then have to be updated. I received the message below from the server after the last time I tried to add static pages. I am new to php so any help is appreciated. I've put a lot of work into the site and like the server so I don't want to have to move to another one.
************ The server was rebooted once again due to a load issue caused by your account 'bedsbreakfastsandinns.com":
Top Process %CPU 99.9 /usr/bin/php suggest.php Top Process %CPU 93.0 /usr/bin/php index.php Top Process %CPU 89.0 /usr/bin/php index.php
Apparently, the crash was not caused by your database uploads but the scripts listed above. I have set the permission of the file index.php and suggest.php to 000 yesterday to prevent them from causing the server to crash. After checking through the programming codes of those scripts, I found that the codes (or sql queries) might not be optimized, resulting in unnecessary burden to the server. If you have changed the permission of these files, please change them back to 000 (non-executable) and DO NOT execute these scripts until they are properly optimized. Please consult with your programmers immediately and have them rewrite the codes or sql queries to optimize the scripts. We have already received a large number of complaints from customers hosting on the same server regarding our server reliability lately. Sadly, you will have to find an alternate hosting provider for the site if otherwise, as our management is rather skeptical about having the site hosted continuously, due to the extent of the damage being done.
Generating static pages makes adding a link very intensive -- it has to grab copies of every page of the category and the front page of your site and then write those, all at once, causing a spike in server load. Using a dynamic directory spreads the load far, far more evenly so that there aren't the kind of sudden spikes that trigger warnings on shared hosts.
I've removed the static html generation from the feature list to hopefully prevent people from expecting WSN Links to run a static HTML directory the same as a script specifically designed for such purpose would.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Static File Generation
Beginner
Usergroup: Customer
Joined: Mar 23, 2005
Total Topics: 2
Total Comments: 4
I am moving an existing static directory to wsn links. The directory has been online for several years and I don't want to miss out on existing traffic and search engine listings. The Static File Generation seems to be a great solution but I continue to get errors. It works fine until I get several urls & filenames added. Then it locks up and seems to reset my htaccess permisions. I have to go to my host to reset the permissions and I loose the static files I've generated.
Is there a limit to the number of urls? Also, some of the existing page names contain a '-'. Is that a possible problem?
For example:
I am trying to redirect: bedsbreakfastsandinns.com/?...ction=displaycat&catid=193
to the static page: puerto-rico.htm
Beginner
Usergroup: Customer
Joined: Mar 23, 2005
Total Topics: 2
Total Comments: 4
It looks like I had a duplicate that fouled me up. All is okay now.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Couldn't you use an htaccess to make the old static urls show the dynamic content? Would be a lot of trouble if there are a lot of them I suppose, but at least you'd have a dynamic site.
Then it locks up and seems to reset my htaccess permisions.
I don't see what htaccess has to do with static pages (other than that it could be a better solution than them). Nor do I see what a duplicate would have to do with anything.
Beginner
Usergroup: Customer
Joined: Mar 23, 2005
Total Topics: 2
Total Comments: 4
I will try the htaccess method you suggest. All I really know is everytime I try to set up static pages it changes the permissions for the domain and gives the following error message:
"Forbidden
You don't have permission to access /alaska.htm on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at www.bedsbreakfastsandinns.com Port 80"
The permissions then have to be updated. I received the message below from the server after the last time I tried to add static pages. I am new to php so any help is appreciated. I've put a lot of work into the site and like the server so I don't want to have to move to another one.
************
The server was rebooted once again due to a load issue caused by your account 'bedsbreakfastsandinns.com":
Top Process %CPU 99.9 /usr/bin/php suggest.php
Top Process %CPU 93.0 /usr/bin/php index.php
Top Process %CPU 89.0 /usr/bin/php index.php
Apparently, the crash was not caused by your database uploads but the scripts listed above. I have set the permission of the file index.php and suggest.php to 000 yesterday to prevent them from causing the server to crash. After checking through the programming codes of those scripts, I found that the codes (or sql queries) might not be optimized, resulting in unnecessary burden to the server. If you have changed the permission of these files, please change them back to 000 (non-executable) and DO NOT execute these scripts until they are properly optimized. Please consult with your programmers immediately and have them rewrite the codes or sql queries to optimize the scripts. We have already received a large number of complaints from customers hosting on the same server regarding our server reliability lately. Sadly, you will have to find an alternate hosting provider for the site if otherwise, as our management is rather skeptical about having the site hosted continuously, due to the extent of the damage being done.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Generating static pages makes adding a link very intensive -- it has to grab copies of every page of the category and the front page of your site and then write those, all at once, causing a spike in server load. Using a dynamic directory spreads the load far, far more evenly so that there aren't the kind of sudden spikes that trigger warnings on shared hosts.
I've removed the static html generation from the feature list to hopefully prevent people from expecting WSN Links to run a static HTML directory the same as a script specifically designed for such purpose would.