Scrowler
09-25-2005, 04:53 AM
hi
what i want to have is instead of linking to mydomain.com/page.html, i would like to link to mydomain.com/page, and have .htaccess rewrite this at the backend to show page.html, so the address is more user friendly (no .html).
here's what i have in .htaccess:
Options +FollowSymLinks
RewriteEngine on
RewriteRule media media.inc.php
so essentially i want to be able to link to "media" and it will rewrite it and show "media.inc.php" instead. problem is, my server doesn't like this and keeps giving me 500 errors. i've tried this code like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule media.do media.inc.php
or some extension, then when i link to media.do it rewrites it to media.inc.php... it just doesn't like not having an extension... is this possible or am i wasting my time?
thanks in advance
** solved - solution: add a $ after the first clause in RewriteRule: **
RewriteRule media$ media.inc.php
what i want to have is instead of linking to mydomain.com/page.html, i would like to link to mydomain.com/page, and have .htaccess rewrite this at the backend to show page.html, so the address is more user friendly (no .html).
here's what i have in .htaccess:
Options +FollowSymLinks
RewriteEngine on
RewriteRule media media.inc.php
so essentially i want to be able to link to "media" and it will rewrite it and show "media.inc.php" instead. problem is, my server doesn't like this and keeps giving me 500 errors. i've tried this code like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule media.do media.inc.php
or some extension, then when i link to media.do it rewrites it to media.inc.php... it just doesn't like not having an extension... is this possible or am i wasting my time?
thanks in advance
** solved - solution: add a $ after the first clause in RewriteRule: **
RewriteRule media$ media.inc.php