This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > July 2007 > Help with .htaccess RewriteRule





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help with .htaccess RewriteRule
laredotornado@zipmail.com

2007-07-27, 10:17 pm

Hi,

I'm using Apache 2.2 on Fedora Core 5 Linux. What I want is if a user
requests a URL with a particular directory name, "beta," to rewrite
the URL replacing "beta" with "user". So I created this .htaccess
file


RewriteEngine On
RewriteRule beta/(.*) user/$1


and placed it in /webroot/. Unfortunately, when I request


http://mydomain.com/beta/test20/ord...ew=0&Departm...


the URL was not rewritten. I have verified that mod_rewrite is
enabled. What is wrong with my .htaccess file?

- Dave

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews