0

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

1
Contributor
1
Reply
7
Views
2 Years
Discussion Span
Last Post by wooshman
0

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.

Edited by wooshman

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.