Forum Moderators: coopster
[mydomain.com...]
[mydomain.com...]
[mydomain.com...]
out to something like
[mydomain.com...]
[mydomain.com...]
[mydomain.com...]
or something else, html only though
I am a big zero at servers and programming and most of the things I came across in my search were either too simple (making php just look html like file.php to file.html) or much more complicated strings.
Please, could someone take pity in me and help me out? :)
Thanks!
is this something that you want to do on the fly, ie: when a user navigates to that page, it is returned as a plain html file,
or is it something which you want as a permanent thing, ie if a record is in a database with a value, you want a static page making for it?
Is it for the Search Engines benefit, or just to reduce load on the server.
I think that .htaccess ReWrite can be used, but dont know whether it works in the way you want it to. Some of the unix bods around here will be able to help you out no doubt.
details as to the use of the system could be useful.
Regards,
Will
PHP vs HTML question [webmasterworld.com]
An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com]
Andreas
*andreasfriedrich - thanks for the threads but they didn't much good. I understood some of DaveAtIFG's post although that doesn't touch the topic of php parsing as html. I tried understanding the Apache documentation but I got lost after the first section. Even tried sitepoint's threads on the same issue and same result.
I guess I have to give the idea up, I was able to learn and understand html, css but this apache and php thing is way over my head :(:(
Thanks for your time.
have a look at this page: [webmasterworld.com...]
In brief, SE's can spider URL's with a paramter, so yours:
/entry.php?show=2.1
will be able to be spidered successfully.
The system I talk about in the post referred to above, would not be good enough for this forum job (like yours), but the post just confirms what I have said about dynamic URL's. ;)
Good Luck, and if you need any more help, feel free to ask.:)
Regards,
Will
AddType application/x-httpd-php .php .php3 .phtml .html
Then, you can use the rewrite engine to make it look like the paramaters are part of the filename.
RewriteEngine On
RewriteRule ^entry_(.*)\.html$ /entry.php?show=$1 [L]
I believe the above lines would successfully change your urls as you noted in your first post.
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. "
:(
if your needs were *purely* search engine related, then there is no need to HAVE to convert to standard html pages - as long as the pages only have one parameter, they will get spidered well!
If however it was to reduce load on the server, then Birdmans way will create more load (i think), so best to stick with your initial idea.
Birdman, is your way making all html files parse through the php parser, and then rewriting the pages into a standard html page?
Regards
if your needs were *purely* search engine related, then there is no need to HAVE to convert to standard html pages
Andreas
I understand that the current urls are perfectly crawlable but as far as I have seen html files always rank higher than php ones, even if they have only one parameter. Maybe I'm wrong?