Rewrite a list of urls URL without Trailing Slash

Discussion in 'Apache' started by tomupton, Mar 28, 2012.

  1. #1
    Hi Guy's,

    Im currently re-designing a website that was previously developed in Jooma.

    Anyway the situation is the current urls across the site are re-written like this.

    newwebsite.com/test1
    newwebsite.com/test2
    newwebsite.com/test3
    newwebsite.com/test4

    What im planning to do is develop a brand new website but keeping the URLS the same as above. The site is not going to be using a CMS but will instead just be static pages.

    The new urls for the site will be like this:

    newwebsite.com/test1.php
    newwebsite.com/test2.php
    newwebsite.com/test3.php
    newwebsite.com/test4.php

    I presume by using a .htaccess file i can re-write the above urls to what they are originally like in the joomla format?

    If someone could give me some advice and maybe a demo on this that would be fab.

    Regards

    Tom
     
    tomupton, Mar 28, 2012 IP