I'm trying to change a numeric ID into a name/title.
Note: i'm working on LocalHost (everything seems enabled)
First i put my rewritemap in httpd.conf, and looks like this:
- Code: Select all
<Directory />
RewriteMap name2id txt:/PHP/map.txt
RewriteRule ^([^/]+)\.html$ /profile.php?lookup=${name2id:$1|0} [QSA,L]
</Directory>
and another version is this:
- Code: Select all
<Directory "E:/THEMES/localHOST/wamp/www/">
RewriteMap name2id txt:/PHP/map.txt
RewriteRule ^([^/]+)\.html$ /profile.php?lookup=${name2id:$1|0} [QSA,L]
</Directory>
and none of them is working, i even put the RewriteRule in .htaccess and nothing. (tells me that "The requested URL /profile.php was not found on this server.")
if take rewriterule from htaccess tells me that "The requested URL /PHP/falcon.html was not found on this server."
The direct link to profile.php and map.txt is in:
- Code: Select all
E:/THEMES/localHOST/wamp/www/PHP
and in map.txt i have just this:
- Code: Select all
falcon 1
my name and my id
Please tell me what i'm doing wrong....