Forum Moderators: phranque
I'm having issue with rewrite urls. The .htaccess file works perfect on my localhost ,but not on 1and1.com's server. Strange. It is giving me 500 internal server error.
Here is the code:
RewriteEngine on
RewriteBase /
RewriteRule ^web-portfolio-([^/]*)\.html$ /webportfolio.php?cat=1&id=$1
Basically, I only want to change urls on 1 file named webportfolio.php. The rest of the files in the directory are .html.
I want webportfolio.php?cat=1&id=5 to say web-portfolio-5.html.
Am I doing it right? Any reason why it won't work on 1and1's servers?
Thanks
-r