Are you a Google Analytics enthusiast?
More SEO Content
Php Index Question
Posted 03 December 2004 - 05:22 PM
If I created a little redirect page from index.html to index.php, would that then become the default index page? (Not what we would want.) Any advice for someone is is NOT comfortable with this coding stuff????
Posted 03 December 2004 - 05:29 PM
If its a nix box, you can use htaccess to redirect requests for index.html to index.php
If memory serves there is also a setting in your httpd.conf file that stipulates what the default files are.
It might also be the case that someone somewhere is linking to this file, hence the requests. Your log files should give you the referal data you need. if its one otr two sites, why not mail them and ask them to update their links.
Im logging off for the night here, but will dig out some code for the htaccess when I get a minute next.
If someone else can do sooner, then please oblige
Posted 03 December 2004 - 06:21 PM
All of this requires that you have access to htaccess on this server; often it isnt on by default, so you will need to request it from the host.
- you can set the server to handle files with a .htm/.html extension as php files.
This means your files can look more 'usual' to the casual web visitor - any file ending in .html/.htm would be checked for php code.
Include the following in your .htaccess file, in the site root directory:
(This can also be done at the httpd.conf level, but it is quite common for shared hosting not to give access to that)
- you can set a particular index.html file to instantly go to a different file
(I think I got that right )
This would mean that the 404s stop; when the visitor arrives at the index.html page, rather than get a 404, they would be instantly whisked to the index.php file.
EDIT: The above does assume you are using Apache.
Posted 03 December 2004 - 10:30 PM
Less server resources used than Rewrite Rules. Not much, but every little bit counts. Plus it'll help both with visitors and most search engine spiders.
Posted 04 December 2004 - 09:36 AM
Why would a site be built in php rather than html, if it's not using any kind of data base features? Every page is static. It does use what I think of as "includes" to pull in boilerplate sidebar text and navigation tables, but why use php instead of just using include files? My client remembers being told by the developers that php was just BETTER than html, but were never clear on why. The site was built simply to house the archived versions of an e-newsletter and have a few pages of resources - that's it.
Posted 04 December 2004 - 09:40 AM
I use php for all my sites, whether they are db driven or not, so that I can use .php for the includes files.
Posted 04 December 2004 - 10:28 AM
Most likely the developers said that because php gives more options moving forward Andrea, and there is no downside at all. If you don't have any PHP in the page, there is nothing to pre-process so the page is delivered just as quickly as an html page would be. Plus it gives you the option of using includes as they apparently have.
Additionally, the developers may have seen a time down the road as the site grew where it would be much easier to maintain if the [url=http://www.highrankings.com/newsletter/]Newsletter Archives[/url] could be added to and retrieved from a database, rather than having to save new pages, update navigation, etc.
Lots of possible advantages, no disadvantages. And no re-writing of URLs if the site does become dynamic in the future. Probably a good decision on their part.
Posted 04 December 2004 - 10:53 AM
Posted 07 December 2004 - 03:42 PM
In case a little encouragement helps - I have just dipped my toes into PHP in order to deal with a feedback form and it didn't kill me, although it was a bit frustrating at times (stupid mistakes on my part, not quirks in PHP). There are lots of good introductory books out there too, and a plethora of web resources so you're not alone at all.
Posted 07 December 2004 - 03:47 PM
Posted 09 December 2004 - 03:03 AM
Posted 09 December 2004 - 08:15 AM
Do you mean ask them to specifically ink to www.domain.com/index.php as opposed to just www.domain.com, as they do today?
Although the stats show tons of requests for the non-existent index.html of this site, it's not showing up in the 404 errors. Can I assume that's a good sign?
Posted 09 December 2004 - 09:48 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users