Forum Moderators: phranque

Message Too Old, No Replies

help with .htaccess file please

recently switched from html to php

         

germanharp

9:07 pm on Jan 9, 2008 (gmt 0)

10+ Year Member



Hello, I really need help. I just switched from html to php and now my links still point at the old filename.html path. I need to have it updated. Is there a way to do this manually? How often is this file updated...if at all? Is there anyone else on the forum using filezilla? I can not see my dot files with filezilla. I could use some help in that area as well. Or download a new ftp client.

Thanks in Advance.
Chris

varya

9:19 pm on Jan 9, 2008 (gmt 0)

10+ Year Member



You can view hidden files with filezilla.

Select "Server" in the toolbar and then click "view hidden files".

jdMorgan

4:10 am on Jan 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> now my links still point at the old filename.html path. I need to have it updated.

Stop. You can keep your old links --and the ranking of the old pages-- by internally rewriting your existing .html URLs to your new PHP files using mod_rewrite. Before proceeding, you might want to look into this.

Jim

germanharp

5:41 am on Jan 10, 2008 (gmt 0)

10+ Year Member



Hi jdMorgan/Varya,
thank you both for your feed back.

this mod_rewrite things sounds complicated. I will look more into this now. Thanks

germanharp

4:37 pm on Jan 10, 2008 (gmt 0)

10+ Year Member



ok, I found the problem ....Me. I found out the the server that my sight is on is a windows server and the company serving my site said that .htaccess is only for Unix/Linux servers. Now I know. So I looked back at my links again for the 100th time and found the problem(s).

Thanks to everyone for giving feedback though.

jdMorgan

4:51 pm on Jan 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The equivalent for Apache mod_rewrite on a Windows server is called ISAPI Rewrite. Unlike mod_rewrite, which is part of Apache, ISAPI Rewrite is an "additional cost" add-on to IIS. However, you might want to check with your host to see if it is available to you.

Jim

germanharp

5:46 pm on Jan 10, 2008 (gmt 0)

10+ Year Member



Thanks jpMorgan

I can put a <? php info> file together and upload it to the server so I don't have to bother the Tech guys that host my website.

This should show me all the tools that are installed for php right? They might blow a blood vessel if they see another email from me. :-)