Forum Moderators: mack
Do I just redirect the visitors to the php page or is there someway that if they click on a link to the htm page it will automatically just appear as the php one? Will this put an extra load on the server?
Like I said before, it's a high traffic page and I've been scared to try something for fear that it would screw up somehow. I've already lost 10k-15k visitors per day because the links load so slow and I don't want to lose anymore.
What do you think the best way to accomplish this is?
Since I have no prior knowledge of how to use this and it looks complex, can anyone simplify how to use mod_rewrite for my situation?
Also, by using this is it possible that some visitors may not be redirected to the .php page and will not be able to view the page?
Take a look at: [httpd.apache.org...]
See section: Content Handling, From Old to New (intern)
If I don't feel comfortable using the mod_rewrite I'll try the parsing. It looks easy enough from the content handling old to new section but I still have no idea how to do it or where to start. Thanks for the help so far.
.htaccess file:
AuthUserFile /dev/null
AuthGroupFile /dev/null
Options FollowSymLinks
RewriteEngine on
RewriteRule ^thepage\.htm$ [mydomain.com...]
[R,L]
Can you guys verify that this will work if I use it.
I'm not sure if it's the slower method, but it's certainly the easiest, just one line of code should do the trick to tell PHP to deal with the .htm pages.
Redirect permanent /oldpage.htm
[mydomain.com...]
it seems to work just fine. My only worry is that Google won't understand it and will mess with my page ranking. Should I do something so I won't lose my good spot on Google?