| Author |
|
kevinbkk Newbie

Joined: 20 September 2008 Location: Thailand
Online Status: Offline Posts: 2
|
| Posted: 20 September 2008 at 12:43pm | IP Logged
|
|
|
hi i am trying to redirect a page as below but is gives
page not found error, please help,
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and
httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteCond Host: www.Mysite\.com
RewriteCond METHOD GET|HEAD
RewriteCond %HTTPS (on)|.*
RewriteRule (.*) http(?1s:)\://Mysite.com$2 [I,RP]
#Fix missing slash char on folders
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,RP]
RewriteRule ^/newyork/ /Cities.aspx?abcd=20 [I,L]
now i want, if some one type
http://Mysite.com/NewyorkCity/ it should be 301 redirect
to URL http://Mysite.com/newyork/
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7598
|
| Posted: 21 September 2008 at 1:19pm | IP Logged
|
|
|
RewriteRule /newyorkcity/ http\://mysite.com/newyork/ [I,RP]
|
| Back to Top |
|
| |
kevinbkk Newbie

Joined: 20 September 2008 Location: Thailand
Online Status: Offline Posts: 2
|
| Posted: 21 September 2008 at 2:11pm | IP Logged
|
|
|
Thanks Buddy it worked
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|