|
Home
Feed Categories
What is RSS?
Why use RSS?
Get PHP Code
Installing Free Code
|
|
Installing your script
HTML Installation Instructions
"The RSS feed content will show up in your html page but not your source code so the search engine will not see it using the HTML method."
I may have found a way to work around this problem.
Converting existing HTML pages
If you convert HTML-pages into PHP-pages you'll need to change the extensions.
And that will create a serious problem: no existing link will work anymore.
If you change a link like http://mywebpage.com/mypage.html into http://mywebpage.com/mypage.php you can be sure that all references to this page will result in errors (the dreaded 404).
Teach your server to parse HTML as PHP
The best solution is to teach your web server that all HTML-pages must be treated as PHP-pages.
This will even work for pages that don't contain any PHP.
The server will just check if PHP is used - if so it will parse the PHP sections and show the parsed PHP and the HTML. If no PHP sections are found - the HTML will be shown.
Configuration file
The trick to achieve this is to add a mime type. If you have access to the configuration file (httpd.conf for Apache) you need to add a line:
AddType application/x-httpd-php .php .html
If a line AddType application/x-httpd-php .php already exists you can just add the .html extension.
.htaccess file
If you don't have access tot he configuration file you can create a file .htaccess with the line:
AddType application/x-httpd-php .php .html
Indeed: the same line as in the con figuration file.
Don't forget the preceding dot in the filename .htaccess !
The file .htaccess has to be placed in each directory of your site that needs to parse an RSS feed.
|
|
|