Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: HTTP 404 - File not found Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Prathibha
Newbie
Newbie


Joined: 27 February 2010
Online Status: Offline
Posts: 1
Posted: 27 February 2010 at 2:14am | IP Logged Quote Prathibha

< style>
Hi,

I have a URL as follows: http://www.domain.com/contents/KeywordsDeals.aspx?category_id=Babies clothes

How do I do a rewrite to: http://www.domain.com/KeywordsDeals/Babies clothes

This is what am doing

RewriteRule ^KeywordsDeals/(\d+)/?$ contents/KeywordsDeals.aspx?category_id=$1 [NC,L]

But I get a HTTP 404 - File not found and this is the URL
http://www.domain.com/
KeywordsDeals/Babies%20clothes
Regards,
Prathibha
Back to Top View Prathibha's Profile Search for other posts by Prathibha
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 01 March 2010 at 3:21am | IP Logged Quote Anton

If you are using ISAPI_Rewrite 3, the syntax should be:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^KeywordsDeals/([^/]+)/?$ contents/KeywordsDeals.aspx?category_id=$1 [NC,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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