LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-22-2006, 11:36 AM   #1
vikram_cvk
Member
 
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 "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,
 
Old 08-23-2006, 07:18 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

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


Reply


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 09:09 PM
MOD Rewrite hurting my SEO... whatduh!? grayram Linux - General 3 06-20-2006 08:39 AM
Exception in mod-rewrite rule Boby Programming 0 01-17-2006 08:40 PM
Mod Rewrite Help carminejg3 Linux - Software 0 12-20-2004 06:19 PM
apache mod rewrite Robert0380 Linux - Software 5 07-31-2003 05:42 PM


All times are GMT -5. The time now is 12:55 AM.

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