Solved

http redirection

Posted on 2009-06-29
2
158 Views
Last Modified: 2012-05-07
Hi,

I want to redirect www.myurl.com/abc to www.myurl.com/index.php?name=abc by .htaccess.
( it can be www.myurl.com/jkfl too)

How do i do it ?
0
Comment
Question by:its_ns_04
2 Comments
 
LVL 7

Accepted Solution

by:
rcflyr earned 500 total points
ID: 24740289
The following accepts and characters 0-9 a-z or _ and redirects it to index.php?name=<name here>
RewriteEngine on

RewriteRule ^([0-9a-z_]+)$ /index.php?name=$1

Open in new window

0
 
LVL 1

Author Comment

by:its_ns_04
ID: 24756763
No it didn't work after I create a .htaccess file with the above contents.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now