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: using .htaccess file
Author
Message |
TFR1
Newbie


Joined: 05 November 2009
Location: India
Posts: 7
Posted: 09 November 2009 at 6:28am

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


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 09 November 2009 at 8:31am

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
 
TFR1
Newbie


Joined: 05 November 2009
Location: India
Posts: 7
Posted: 09 November 2009 at 11:33pm

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


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 10 November 2009 at 5:11am

"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
 

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