Solved

http redirection

Posted on 2009-06-29
2
161 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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