This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: using .htaccess file Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TFR1
Newbie
Newbie


Joined: 05 November 2009
Location: India
Online Status: Offline
Posts: 7
Posted: 09 November 2009 at 6:28am | IP Logged Quote TFR1

Hi,

I have typical asp project for which i need to do url rewriting.
currently on my localhost i have defined rules in httpd.conf which are executed perfectly.

Problem is these rules are executed for every site hosted on my iis.
How can specify virtual directory level rules that are applied only on that particular virtual directory.

Can these be done by .htaccess file? If so what should be the content of these file and where should i put these file? Please suggest.

Thanks !

Back to Top View TFR1's Profile Search for other posts by TFR1
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 09 November 2009 at 8:31am | IP Logged Quote Anton

If you are using Full version, you should simply put the .htaccess with your rules into the root of a particular site.

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


Joined: 05 November 2009
Location: India
Online Status: Offline
Posts: 7
Posted: 09 November 2009 at 11:33pm | IP Logged Quote TFR1

I have used lite version for trial. Does this matter?

I have try putting .htaccess file in the root of a particular site with same content as htttd.conf file. but it seems that its not executed... nothing written in error.log or rewrite.log file.

Is it some issue with double registration as suggested in your blog?

Actually I need to apply different type of URL rewritting methods for this application say method 1 is normal url, method 2 is kind of "www.xxx.com/test123.asp" and method 3 be "www.xxx.com/Company/page1.asp".

I think i can get .htaccess working but can i have more than one .htaccess files in my root folder? say only enabling only one at a time.
Please note I am not supposed to pass any parameter that specify the url rewrtting method used. May be I get this by comparing some pattern in URL.

Please help!





Back to Top View TFR1's Profile Search for other posts by TFR1
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 10 November 2009 at 5:11am | IP Logged Quote Anton

"I have used lite version for trial. Does this matter?" - yes, Lite version does not support .htaccess files.
In Lite version the only solution is to use RewriteCond %{HTTP_HOST} directive before each RewriteRule line. For example:

RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.xxx\.com$ [NC]
RewriteRule ^test123\.asp$ Company/page1.asp [NC,L]

Also notice that you may use Full version for free for 45 days.

__________________
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