Reply
coverting dynamic to static
Old 05-19-2007, 02:01 AM coverting dynamic to static
Skilled Talker

Posts: 58
Dear forum members,


i would like to know how to change dynamic PHP & ASP documents into static pages.

is mode rewrite necessary,please help me

Thank you
jdial is offline
Reply With Quote
View Public Profile Visit jdial's homepage!
 
When You Register, These Ads Go Away!
Old 05-19-2007, 08:48 AM Re: coverting dynamic to static
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,114
Name: Matt. (>',')>
Location: London, England.
mod rewrite would be the way to go, But the URLs are going to change which will mean a loss in SERPS and your site will have to wait to be reindexed.

Personally i wouldn't bother. Dynamic pages aren't ranked or crawled any different than static pages.
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 05-19-2007, 09:07 AM Re: coverting dynamic to static
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
Quote:
ASP
mod_rewrite is an Apache only system, so if you are running IIS you will need a different solution.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-19-2007, 06:47 PM Re: coverting dynamic to static
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,181
Name: John Alexander
This would be very easy with ASP.NET, although Adam tells us custom 404 is the way to go with old-school ASP.

More to the point, Stox is absolutely right about static vs dynamic content. That's an old wive's tale from about five years ago. Engines used to have a harder time dealing with dynamically generated pages, and in some cases index them differently. They still do, with the suppdex, if you use too many query string parameters.

ASP and PHP run some code on the server, and sends pure HTML down to the client, with maybe some script the bots will ignore. And content is content.

Mostly. If you serve radically different things from the same URL with a different query, the bots could have a hard time with it, but chances are you're just fine. Microsoft's development site ( msdn ) does fine in the SERPs, and is all ASP and ASP.NET.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-20-2007, 12:11 AM Re: coverting dynamic to static
seolman's Avatar
Soaked but happy...

Posts: 677
Name: DaveBob Roundpants III
Location: Heredia, Costa Rica
All our sites are dynamic and, as regards SEO, we poop all over our static page competition from a dizzy, nosebleed height. Don't waste your time...
seolman is offline
Reply With Quote
View Public Profile Visit seolman's homepage!
 
Old 05-20-2007, 01:07 AM Re: coverting dynamic to static
Skilled Talker

Posts: 65
Well, if you have personal reasons for wanting static pages and want to rid yourself of dynamic pages, and you are running on apache. . .

I think you can use Add-type or even Force-type in your .htaccess file to make your .php pages read as html. You'll have to strip out the code, though.

This way you won't have to mess with redirects, the index.php page will still be there, only the file will be read as static, not dynamic.

Please correct me if I'm wrong, I use this in an inverted way - I save pages as .htm but they are actually perl scripts. (using add-type cgi-script to the htaccess file)

However, it really has no effect on search engine rankings, at least that I've noticed in the last couple of years.
whooligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to coverting dynamic to static
 

Thread Tools

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

vB 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.14039 seconds with 12 queries