I really need to change my URLs to directory style ones.
What is the HTACCESS code to changetomysite.com/product20392.php?mysite.com/product20392
Regards
Jake

I really need to change my URLs to directory style ones.
What is the HTACCESS code to changetomysite.com/product20392.php?mysite.com/product20392
Regards
Jake
if PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich.
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP
RewriteRule (.*)\.php$ $1 [R=301]
?
How can I then make it pull content from /product20392.php ?
if PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich.
I ain't got hosting atm so i can't test this but try;
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}!-d
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule ^([^.]+)\.php$ $1 [L]
with or without the code before?
500 error too
if PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich.
Without![]()
500 error.
if PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
^ without previous code.
It's not removing .php!
But it pulls content.
if PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich.
omg >.< 1 sec
Is this on btw?
Options +FollowSymLinks
(at top)
Last edited by scottish; 02-10-2008 at 09:18 PM.
Want to hide these adverts? Register an account for free!