Hi All

I am new to trying to create my own mod_rewrite rules but do know from the outset my server host supports it. I have one pre-built script which uses them without issue which means it is me :-(

So, my goal is to make:
http://www.kentroadplanings.co.uk/index.php?show_pages=4&p=Screened-Road-Planings

into:
http://www.kentroadplanings.co.uk/Screened-Road-Planings.html

So, using the mod rewrite generator here http://www.generateit.net/mod-rewrite/index.php

I get the following rules to put in my .htaccess file.
RewriteEngine On
RewriteRule ^([^/]*).html$ /index.php?show_pages=4&p=$1 [L]

I upload the .htaccess file and it makes no difference. Even the mod_rewrite checkers don't change the url.

Please could anyone point me in the right direction.

Many thanks in advance
Ben

I have just created a test.php file in a foldr called test.

.htaccess that is also in the test folder reads as follows:
`Options +FollowSymLinks
RewriteEngine On

RewriteRule ^([^/]+).html$ /test.php?p=$1 [L]`

so when test.php?p=testing is run in a browser, I should get:
test.php/testing.html

but I don't.

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.