Hi, Can I use .htaccess to rewrite urls from '/' to '.html'?

Discussion in 'Apache' started by thudufushi, Jul 21, 2006.

  1. #1
    Hi guys,

    I am not very clever with .htaccess so dont know if this can be achieved.

    I am running this site www.webnweb.info on phpld v3.5 . I have just upgraded it from v2. On v2 it ran a mod. which rewrote urls so they all ended in .html. As you can see this now does not happen, there is no file extention. The mod doesnt work in this new version. So if I cant get a rewrite to work to .html, I will slow hundreds of pages of the directory with Pagerank on them!!

    You can see what I mean by clicking on any directory link, then remove the trailing / and put .html, voila the Pageranked page.

    Any help appreciated,

    Oh here is the current htaccess file attached.

    Cheers
    Steve
     

    Attached Files:

    thudufushi, Jul 21, 2006 IP