LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mod rewrite problem .. want a friendly/readable url (https://www.linuxquestions.org/questions/linux-server-73/mod-rewrite-problem-want-a-friendly-readable-url-476252/)

vikram_cvk 08-22-2006 10:36 AM

Mod rewrite problem .. want a friendly/readable url
 
Hello Experts,

Trying to create friendlier/readable url for my website.

we have webpages with urls like "mydomain.com/members/?Z=username" , now we want the urls to be like "mydomain.com/username"


Im new to url rewriting, I tried the following

Contents of .htaccess
=====================
RewriteEngine on
RewriteRule ^members/?Z=([A-Za-z0-9])$$1


If i put the above .htaccess in the docroot im getting "Internal server error 500" message.

Kindly help me out in writing rewriterule which can substitute the ugly url to the friendly one.

I also want to ensure that that all kinds of usernames (with digits or without digits,starting with digits/ending with digits etc) are captured properly by the rewrite rule.

Thx in advance.

Regards,

mjmwired 08-23-2006 06:18 PM

RewriteRule requires 2 parameters, you only have 1.


All times are GMT -5. The time now is 06:54 AM.