Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-22-2006, 10:36 AM   #1
Registered: Jan 2004
Location: Hyderabad , India
Distribution: RHL 9
Posts: 42

Rep: Reputation: 15
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 "" , now we want the urls to be like ""

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.

Old 08-23-2006, 06:18 PM   #2
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
RewriteRule requires 2 parameters, you only have 1.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warn: Apache Mod-Rewrite vulnerability Capt_Caveman Linux - Security 0 07-30-2006 08:09 PM
MOD Rewrite hurting my SEO... whatduh!? grayram Linux - General 3 06-20-2006 07:39 AM
Exception in mod-rewrite rule Boby Programming 0 01-17-2006 07:40 PM
Mod Rewrite Help carminejg3 Linux - Software 0 12-20-2004 05:19 PM
apache mod rewrite Robert0380 Linux - Software 5 07-31-2003 04:42 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration