This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: HTTP 404 - File not found
Author
Message |
Prathibha
Newbie


Joined: 27 February 2010
Posts: 1
Posted: 27 February 2010 at 2:14am

< 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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 01 March 2010 at 3:21am

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
 

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

Printable version Printable version
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