Hello all,
-
How should I proceed "RewriteRule ^(.)/$ index.php?page=$1",
because
when I replace this rule with
if ($host ~ “www.domain.tld” ) {
rewrite ^/([^/]+)/ /index.php?page=$1;
break;
}
But my directory in the root folder does not work. How should I set this
rule correctly
-
Apache server serves a little bit more than 100 clients. How should i
proceed to all rewrite rules with minimal corrections
–
Please excuse my bad english…
С уважение,
Й. Георгиев.
WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
On Wed, Mar 26, 2008 at 01:15:45PM +0200, Yordan G. wrote:
- How should I proceed "RewriteRule ^(.)/$ index.php?page=$1", because
when I replace this rule with
if ($host ~ “www.domain.tld” ) {
rewrite ^/([^/]+)/ /index.php?page=$1;
break;
}
But my directory in the root folder does not work. How should I set this
rule correctly
server {
server_name www.domain.tld;
rewrite ^(.*)/$ /index.php?page=$1;
...
}
On Wednesday 26 March 2008, Yordan G. wrote:
Result: http://www.domain.tld/index.php?page=/test
Desire: http://www.domein.tld/index.php?page=test
rewrite ^(.*)/$ /index.php?page=$1;
rewrite ^/(.*)/$ /index.php?page=$1;
Result: http://www.domain.tld/index.php?page=/test
Desire: http://www.domein.tld/index.php?page=test
On Wed, Mar 26, 2008 at 2:07 PM, Igor S. [email protected] wrote:
rule correctly
–
Igor S.
Igor Sysoev
–
Please excuse my bad english…
С уважение,
Й. Георгиев.
WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
Super. This solution is good!
- Apache server serves a little bit more than 100 clients. How should i
proceed to all rewrite rules with minimal corrections? Any idea?
On Wed, Mar 26, 2008 at 2:40 PM, Igor S. [email protected] wrote:
On Wed, Mar 26, 2008 at 01:15:45PM +0200, Yordan G. wrote:
rule correctly
–
Igor S.
Igor Sysoev
–
Please excuse my bad english…
С уважение,
Й. Георгиев.
WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
Igor, thank you very much for your support. My english is really bad but
i
will do my best to ask my question on the right way. I have around 100
sites
and all of them use mod_rewrite. There are too many rules. Is there any
way
i can convert all these rules working with rewrite into nginx? Is there
any
other easier way that i can transfer all these sites to work under
nginx.
The Apache server makes the machine to work way too heavy and i want to
change it with nginx-my experienced so far show me that it is at least
twice
lighter.
Thank you
On Wed, Mar 26, 2008 at 04:29:27PM +0200, Yordan G. wrote:
- Apache server serves a little bit more than 100 clients. How should i
proceed to all rewrite rules with minimal corrections? Any idea?
I do not understand the question.