How to do Pan-Domain Name? how to write ini?

Topics: Developer Forum, Project Management Forum, User Forum
Jan 6, 2010 at 9:39 AM

How to do Pan-Domain Name? how to write ini?



how to write ini?



how to write ini?


RewriteCond %{HTTP_HOST} ^(?!www)(shop(.*)+)\.test\.com [I]
RewriteRule ^/shop(.*)$      /test.aspx?uid=*1

this is error



Jan 6, 2010 at 11:17 AM

*  -->*

* -->*/list.htm


how to write ini?




Jan 7, 2010 at 1:10 AM

I don't understand what you want.

If you want help, you need to provide some additional clarification.

I suggest you use the kind of language that I use in the help file.  Use words like:  REDIRECT, REWRITE, URL PATH, HOSTNAME, etc. 

example: "I want to {REDIRECT, REWRITE, PROXY, etc} to xxx when the {URL PATH, HOSTNAME, etc}  is  YYY. "


Jan 7, 2010 at 1:20 AM

thanks reply

*   to*


* -->*/list.htm



Jan 7, 2010 at 2:26 AM

Well, I'm going to guess.  I think you want a REWRITE, and not a REDIRECT.  Even though you are including in the output (to the right of the -->) , I think you want REWRITE because you want the * to remain in the browser's URL address  bar. 

 So I'm going to guess that you want a rewrite.   Also, you want to rewrite to a URL that is based on the incoming host name. 

There is a section in the help file that covers exactly this.

Here are the relevant ini directives:

# --------------------------------------------
# explicitly specify the use of * for RewriteCond back-references
CondSubstringBackrefFlag *

# --------------------------------------------
# Rules
# With a request like, rewrite the request
# to /host1/Alpha.htm.  If the server is not configured with a 
# vdir named "host1", then IIS will return a 404 "Not Found".

RewriteCond  %{HTTP_HOST}    ^([^\.]+)\.test\.com$
RewriteRule  ^/list.htm$      /html/*1/list.htm  [L]  
Jan 7, 2010 at 3:24 AM

*   to*      and    * -->*/list.htm

how to do?


Jan 7, 2010 at 4:17 AM

I just answered this question.

If my answer wasn't clear, I suggest that you read the documentation.

This has been a lot of fun, this game where I guess what you want, and then you ask the same question again.  But I don't want to play anymore.

Good luck.