I'm having trouble getting a simple URL rewrite to work.
My intention is to create some user friendly URLs from the dynamic one's that the site uses to pass parameters to database queries.
I've done this before on other sites and it has worked fine but for some reason it's just not happening with this one.
This is what I have in my .htaccess file
The problem is with the last line there. The other stuff seems to work fine.
I'm trying to set up a URL rewrite so that users visiting are shown the page at
I've tried a number of things none of which seem to work. The only thing that has worked is a redirect in the form of
but I don't really want to do it this way and would prefer the URL rewrite.
I've also tried commenting out the 404 directive in case this was forcing the showing of the 404 page instead of rewriting the URL.
<honk>*:O)</honk>
Designease Ltd. - polyprop folders, ring binders and creative presentation ideas
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
My intention is to create some user friendly URLs from the dynamic one's that the site uses to pass parameters to database queries.
I've done this before on other sites and it has worked fine but for some reason it's just not happening with this one.
This is what I have in my .htaccess file
Code:
ErrorDocument 404 /404error.php
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
Options +All
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainname\.co.uk
RewriteRule ^(.*)$ [URL unfurl="true"]http://www\.domainname\.co\.uk/$1[/URL] [R=permanent,L]
RewriteRule ^/polyprop$ /product-material.php?material=1 [L]
The problem is with the last line there. The other stuff seems to work fine.
I'm trying to set up a URL rewrite so that users visiting are shown the page at
I've tried a number of things none of which seem to work. The only thing that has worked is a redirect in the form of
Code:
Redirect 301 /polyprop /product-material.php?material=1
but I don't really want to do it this way and would prefer the URL rewrite.
I've also tried commenting out the 404 directive in case this was forcing the showing of the 404 page instead of rewriting the URL.
<honk>*:O)</honk>
Designease Ltd. - polyprop folders, ring binders and creative presentation ideas
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire