whitestream6 0 Junior Poster

I got my httpd.conf and virtual hosts working properly, no problems there! :)

Using mod_rewrite is the big problem.

I've created the page http://mycarwebsite1.com/page2.php
but want to rewrite it without the extension on the end.

Also, what does this do (from my example):

RewriteEngine on
RewriteRule ^12.php$ 13.php

I have this code in my .htaccess currently:

RewriteEngine On

RewriteCond %{THE_REQUEST} ^GET\ /(([^/?]*/)*[^/?]+)\.php
RewriteRule ^.+\.php$ /%1 [L,R=301]

Why is this not working and how can I fix it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.