Good evening,

I have a website which I have rewritten the URL's for (only takes off the file extension from the URL)

I have a 'portfolio' page which has some projects on. I use a GET value to decide which row of content to pull from the database.

Trouble is I can't seem to rewrite the URL to compensate when a the URL contains the GET variable.

If I show you my code it may be easier to spot something.

Here is my portfolio page:
Code:
<div id="portfolio-main">
        <div id="portfolio-main-content" class="container">
            <a href="./adkahuna">
                <img src="http://www.codingforums.com/images/thumbs/adkahuna-thumb.png" alt="Adkahuna" />
                <span>VIEW PROJECT</span>
            </a>


            <a href="./freshwater-creative">
                <img src="http://www.codingforums.com/images/thumbs/freshwater-creative-thumb.png" alt="Freshwater Creative" />
                <span>VIEW PROJECT</span>
            </a>


            <a href="./iCool">
                <img src="http://www.codingforums.com/images/thumbs/iCool-thumb.png" alt="iCool" />
                <span>VIEW PROJECT</span>
            </a>


            <a href="./e4-event" class="last">
                <img src="http://www.codingforums.com/images/thumbs/e4-event-thumb.png" alt="E4-Event" />
                <span>VIEW PROJECT</span>
            </a>


            <a href="./klutts-property-management">
                <img src="http://www.codingforums.com/images/thumbs/kluttsinfo-thumb.png" alt="Klutts Property Management" />
                <span>VIEW PROJECT</span>
            </a>


            <hr class="invisible" />
        </div>
    </div>
Here is my mod_rewrite:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [L,QSA]
RewriteRule ^/?([a-zA-Z0-9-_]+)$ project.php?project=$1 [L]
I am getting the functionality at the moment. All is working, the files/content load into project.php.

The problem is the URL is: www.mysite.com/project-name instead of www.mysite.com/portfolio/project-name

If I add './portfolio/adkahuna' for example into the anchor links on the portfolio page, it just reloads the portfolio page.

Anyone spot anything?

Thank you very much for your time.

Kind regards,

LC.