htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: my htaccess problem
PostPosted: 10 Jul 2008 12:58 
Offline

Joined: 10 Jul 2008 12:46
Posts: 1
hi friends,
i have faced a problem relating to htaccess and can't getting it solved.
i need to redirect only one of my webpage.
http://www.sitename.com/myaccount.php is to be redirect ---> http://www.sitename.com/username
it means when the user type the second url in the address bar, it will redirect to his myaccount if his username exists or otherwise in login.

if anybody help me regarding this i will be highly obliged

pranoy


Top
 Profile  
 
 Post subject: Re: my htaccess problem
PostPosted: 11 Jul 2008 04:52 
Offline

Joined: 30 Oct 2006 19:55
Posts: 99
Code:
http://www.sitename.com/myaccount.php is to be redirect ---> http://www.sitename.com/username


Something like that is a start, you need to explain more what you need.. like what they type, what they are actually viewing, and what shows up in their browsers address bar..

Code:
RewriteEngine On
RewriteBase /

RewriteRule ^([a-zA-Z0-9]+)$ /myaccount.php [NC,L]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB