|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I want to convert one of my sites into a dynamic site with PHP because there is a lot of repetitive code on each page that I would like to put in a single php script to make the maintenance of the site easier.
The problem is, the site is almost a year old and a lot of SEO work has been done on this site. Its traffic can still be greatly increased, but I do not want to loose the traffic I already get from the search engines. I have not access to the .htaccess file so I am forced to rename all my pages to php to have the code parsed by the server. Because of this I also can't do 301 redirects from a file with an htm/html extension. So the best way to do this is with a 0-second meta refresh, something that is supported by most browsers and accepted by most Search Engines as something similar to a 301 redirect. I know you need to stay away from JavaScript redirects, another reason why I switched to PHP to have more server side scripting done opposed to faulty client-side scripting. I have prepared all the html files with the proper meta refreshes, but I would like to know how long should I keep these "place holders" for my old pages on my server. The search engines may re-index my site and hopefully transfer the PageRank to the new pages, but what about all the inbound links from other sites (even some I may not be aware off) is it wise to keep these redirecting pages for an infinite time on my server. Thanks I appreciate the help. |
|
||||
|
Quote:
I'd consider putting it at 10 or something. Also, on each original .htm page, put a link to the new page on it, e.g: Code:
<center>This page has moved. Click here to go to the new page.</center>
__________________
Freelance IT consultant & SEO marketing Private message for contact information |
|
||||
|
Never use meta refresh! Too risky!
Do that with PH. See here how simple that is: http://php.about.com/od/learnphp/ht/phpredirection.htm
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
adbart I used exactly the method you described but only with 0-second refresh. I will make it 10 seconds like you suggested. Luckily I have not uploaded any files yet so no damage done. Good thing I asked for advice first.
Webnauts thanks for the page on PHP redirection. Unfortunately my web hosts only allow PHP parsing in .php files so no parsing is done in .htm files and like I said I have no access to the .htaccess file so I cannot configure the PHP settings on the server. But the link you provided was a lifesaver with a page of another site I had redirection problems with. The redirection worked on my local Apache server but failed once I uploaded it too my server. I never knew that the PHP code should be the only code in the file with no text to be sent to the browser before the PHP script. The redirection started working once I removed the other text from the file. I hit two flies with one question. Thanks guys! I just wonder why the redirection succeeded on my local server, which setting allows a mixture of HTML and the 301 PHP code in the same file? Any ideas? |
|
|||
|
You can set headers and have html in the same php file, but all calls to header() MUST be made before ANY html is outputted, or you will receive an error to that effect. If you didn't get an error on your local server you must have error reporting off (or very low)
|
|
|||
|
A meta refresh is an ultra dangerous method to use. Even though it sounds like you 100% ethical in you purpose, the spammers used that tag to excess and it just to much of a risk.
Google says this about redirects. Don't employ cloaking or sneaky redirects. .htaccess with a 301 code is the best. If your server doesn't allow this, then switch servers. You shouldn't have to spend more $29 a month for quality hosting with root level and .htaccess.
__________________
Serr.biz - Ethical SEO,SEM and Blog marketing Comprehensive e-brand marketing. Call 800.556.7449 for a free consultation. |
|
|||
|
If there is a lot of repetitive code, and the site is optimized..
How about server side includes?
__________________
Hardcore Programming Solutions and Coffee Drinker |
|
|||
|
I totally agree with DrTandem
If you really don't have the ability to modify your .htaccess, it is time to find a new host. There shouldn't be a need to change your file names and lots of scripts require htaccess to provide user friendly URLs.
__________________
Andy Beard |
|
|||
|
I'm with Andy on this one-- if you're sure you don't have access to the .htaccess file (or can't create one for each directory), then... forget about these guys, they're not worth hosting with anyway. Can you say who they are? It really sounds like they're giving you a raw deal.
I'm using cheap hosting at 1and1.com and finding it perfectly serviceable for running WordPress blogs (though a bit sluggish at time, in the $10 a month plan I'm using). A really good host for Linux/Apache stuff, by all accounts (though I haven't tried them) is Media Temple (mediatemple.net). Have a look at both of these. I'm sure plenty of people here can recommend others as well.
__________________
-a |
|
|||
|
but it's not the proper method - i mean to change server, i know yahoo server do not give access the .htaccess file, so what we have to do??
|
|
|||
|
hi
there is a great discussion about redirection. hope it may help you > http://www.webmasterworld.com/apache/3208525.htm |
|
|||
|
ddwebguru if they don't give access, it is what customers do, take their money elsewhere.
__________________
Andy Beard |
|
|||
|
yea i am agree but if we get some other way it will be much better
|
|
|||
|
Your sig suggests you are an SEO. If you are working for a client who is using hosting that doesn't allow the use of .htaccess, your first task is to move them to a host that does allow it.
There are so many uses for .htaccess and mod_rewrite as an SEO that it should be a requirement for you to undertake the work.
__________________
Andy Beard |
|
||||
|
try SSI includes, you don't have the change the file name then.
__________________
Take a break and watch some stupid video clips |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |