Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Change from dynamic to static pages?
Old 05-30-2006, 04:54 PM Change from dynamic to static pages?
swiftmed's Avatar
Super Spam Talker

Posts: 904
Trades: 3
Hello guys,

Looking for a bit of your expert advice....again!. I have been given the task to change this website: www.aneye4style.com from dynamic pages to static pages. can anyone give any advice on how one goes about doing this please?....any suggestions, advice, possible change of software, any advice whatsoever you can offer is very much appreciated. the site is run from an admin panel, so that new entries can be added to the directory by the site administrator.

Cheers guys.

Last edited by swiftmed; 05-30-2006 at 05:13 PM..
swiftmed is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-30-2006, 06:37 PM Re: Change from dynamic to static pages?
Village Idiot's Avatar
Webmaster Talker

Posts: 535
Trades: 0
you have allot of work ahead of you, making it dynamic is the vastly better way.

each page to its own, each one will have to be made as is, copy and paste will be your friend here
__________________
I have the heart of a child, I keep it in a jar on my desk.
Village Idiot is offline
Reply With Quote
View Public Profile
 
Old 05-31-2006, 04:37 AM Re: Change from dynamic to static pages?
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Generate each page, copy the content into new pages, then update the links.

But why would you want to change a dynamic website into a static one?! That's kinda taking a step in the wrong direction if you ask me...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-31-2006, 11:14 AM Re: Change from dynamic to static pages?
swiftmed's Avatar
Super Spam Talker

Posts: 904
Trades: 3
The reason the client has asked for this is so the urls are static, and obviously search engines will index the static pages, whereas they wont index dynamic ones....is this correct?

I dont know whether i have explained the situation correctly...not sure. I want the sites functions to remain the same, but when the directory is updated by the admin panel...for example, another resource is added, i want the finished files to be exported to static URL's.....can this be done easily? whats the process? any help is very much appreciated.

I dont acctually mean actual static pages, just static to search engines so instead of being
index.php?cat=dfmkdmf&id=7&search=475 etc etc

index.php/music/band.htm

thats exactly the task i am trying to accomplish

Last edited by swiftmed; 05-31-2006 at 11:20 AM..
swiftmed is offline
Reply With Quote
View Public Profile
 
Old 05-31-2006, 04:37 PM Re: Change from dynamic to static pages?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
actually SEs can index "dynamic" URLs just as well as "static" URLs

But that site won't be crawled in a month of Sundays, simply because the navigation is in a form and crawlers can't submit forms!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-01-2006, 02:32 AM Re: Change from dynamic to static pages?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It does have a non-form navigable architecture, Chris. It's just buried below the Google Adsense.

swiftmed: what you want is a custom 404. I haven't done it with PHP, but I have with ASP. If done properly, you can use it to simulate static URLs by redirecting them using the custom 404 (which by default will return a status of 200, the general "EVERYTHING IS OKAY Homer Simpson Alarm" code, unless you specify otherwise.)

http://members.cox.net/midian/tutorials/php404.htm

That might help (although if it doesn't, don't shoot the messenger...I've never tried it.)
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-01-2006, 04:26 AM Re: Change from dynamic to static pages?
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
What you need is URL re-writing. Your web server is telling me it's Apache, therefore you need to use mod_rewrite. Google is your friend
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 06-01-2006, 04:55 AM Re: Change from dynamic to static pages?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
It does have a non-form navigable architecture, Chris. It's just buried below the Google Adsense.
So it is!

Fancy that the adsense (and the affiliate adverts) being more important than the site navigation
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-01-2006, 11:07 AM Re: Change from dynamic to static pages?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You're just being picky, Chris. You want to use the site and try to find stuff on it...YOU'RE SPOSTA BE CLICKING THE ADS, DAMMIT.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-01-2006, 03:05 PM Re: Change from dynamic to static pages?
Charley Delta's Avatar
Experienced Talker

Posts: 32
Location: Rochester, NY USA
Trades: 0
{Sorry folks, I didn't realize "Submit" was highlighted when I tried to do a new line. Can somebody delete this one please?}
__________________
Always take into account what nobody would ever do in a million years, because someone will.

Last edited by Charley Delta; 06-01-2006 at 03:10 PM..
Charley Delta is offline
Reply With Quote
View Public Profile
 
Old 06-01-2006, 03:08 PM Re: Change from dynamic to static pages?
Charley Delta's Avatar
Experienced Talker

Posts: 32
Location: Rochester, NY USA
Trades: 0
Quote:
Originally Posted by swiftmed
I dont acctually mean actual static pages, just static to search engines so instead of being
index.php?cat=dfmkdmf&id=7&search=475 etc etc

index.php/music/band.htm

thats exactly the task i am trying to accomplish
PHP has a $PATH_INFO variable that holds whatever is after index.php. In your example that would be /music/band.html. I used this to good effect on a website that I no longer have live. I used a simple five digit code to tell me what to include, but you can expand that as much as you need.

The page was linked like this: index.php/11033. To get "11033" I used this line of code:
$whatTask = substr($PATH_INFO, 1, strlen($PATH_INFO) - 1);
This got rid of the / after index.php. Then just include that file, like so. (Note that I dropped the .htm from your original URL.)
Code:
include($DOCUMENT_ROOT."/includes/".$whatTask.".inc");
This would pull the info from the file at www.yourdomain.com/includes/music/band.inc. And yes, I realize I stripped out the / from $PATH_INFO just to put another one in there. I changed horses mid-stream. Sorry.

It's my understanding based on reading the PHP site that this looks just fine to a search engine but still gives you ther flexibility of dynamic pages. Please let me know if I can help further.
__________________
Always take into account what nobody would ever do in a million years, because someone will.
Charley Delta is offline
Reply With Quote
View Public Profile
 
Old 06-02-2006, 07:53 AM Re: Change from dynamic to static pages?
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Sorry, but why is this topic contiuing?

If bots weren't able to crawl through dynamic URLs, then a lot of sites wouldn't have been indexed as deeply as they have, especially blogs.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 06-02-2006, 08:14 AM Re: Change from dynamic to static pages?
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
AFAIK, it depends on how complex the query string is. I remember reading this on Google somewhere... they said that if it's just 1 or 2 simple parameters on the query string, it will be crawled - but if there's loads, it will most likely skip it.

I'm not sure exactly where to draw the line, the only way to know would be to look at the source code of the crawler.........
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 06-02-2006, 02:01 PM Re: Change from dynamic to static pages?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
3 parameters is about the limit generally. But as with all things SE related it isn't an absolute. There are many sites that get indexed fully with 4 or more parameters
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-02-2006, 02:16 PM Re: Change from dynamic to static pages?
swiftmed's Avatar
Super Spam Talker

Posts: 904
Trades: 3
With a Mod_rewrite....does it just edit the url or does it redirect it to another page?
swiftmed is offline
Reply With Quote
View Public Profile
 
Old 06-02-2006, 04:11 PM Re: Change from dynamic to static pages?
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
It just edits ('rewrites') it. There's no redirect and it's completely transparent to the browser.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 06-02-2006, 10:39 PM Re: Change from dynamic to static pages?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
It amuses me that WT uses mod_rewrite. What's the decision reasoning there?
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-03-2006, 07:51 AM Re: Change from dynamic to static pages?
swiftmed's Avatar
Super Spam Talker

Posts: 904
Trades: 3
Is this a question directed at me or to the owners of the site?
swiftmed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Change from dynamic to static pages?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.69247 seconds with 12 queries