This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: URGENT : URL rewriting.
Author
Message |
r_b_8388
Newbie


Joined: 08 October 2011
Posts: 1
Posted: 08 October 2011 at 3:21am

if I write in URL
www.xyz.com/index.php?view=login

then it should execute
www.xyz.com/login.php


What should I write in .htaccess for this.

Please help me out.
Thanks in advance.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 10 October 2011 at 7:50am

Hello,

Please, try using:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} ^view=([^&]+)$ [NC]
RewruteRule ^index\.php$ /%1.php [NC,R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^./]+)\.php$ /index.php?view=$1 [NC,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version