• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

http redirection

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
its_ns_04
Asked:
its_ns_04
1 Solution
 
rcflyrCommented:
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
 
its_ns_04Author Commented:
No it didn't work after I create a .htaccess file with the above contents.

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now