can .htaccess make url better ?
can .htaccess make url better ?
am 08.03.2010 10:15:41 von joydeep
Hello list,
the click enlarge facility of an image gallery generates the links in a
very ugly manner, like
````````````````
http://192.168.1.1/reifenqualitaet/index.php?eID=tx_cms_show pic&file=uploads/tx_reifenqualitaetimage/image-227X227_02.jp g&bodyTag=
&wrap=%20|%20&md5=9021563e8e2c9efadb629ddd197f22bf
````````````````
Is it somehow possible to generate the link little nicer by the help of
..htaccess ?
thanks
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: can .htaccess make url better ?
am 08.03.2010 15:10:48 von Rich Bowen
--Apple-Mail-2--160043642
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
On Mar 8, 2010, at 4:15 AM, J. Bakshi wrote:
> Hello list,
>
> the click enlarge facility of an image gallery generates the links
> in a
> very ugly manner, like
>
> ````````````````
> http://192.168.1.1/reifenqualitaet/index.php?eID=tx_cms_show pic&file=uploads/tx_reifenqualitaetimage/image-227X227_02.jp g&bodyTag=
>
&wrap=%20|%20&md5=9021563e8e2c9efadb629ddd197f22bf
> ````````````````
>
> Is it somehow possible to generate the link little nicer by the help
> of
> .htaccess ?
It is possible, using mod_rewrite, to make most URLs look different.
One person's notion of nice may be different from another. I would,
however, recommend that you ask this question of users of this
particular image gallery software, as they very likely have a standard
way of doing what you're trying to do.
Failing that, I would suggest that you look at the mod_rewrite docs (http://httpd.apache.org/docs/trunk/rewrite/
and http://wiki.apache.org/httpd/Rewrite) and see if there's
something there that does what you need.
Also, note that .htaccess files are merely one of the places that you
can put configuration directives. When possible, you should try to put
directives in the server configuration file rather than in .htaccess
files.
--
Rich Bowen
rbowen@apache.org
--Apple-Mail-2--160043642
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
-webkit-line-break: after-white-space; ">
On Mar 8, 2010, =
at 4:15 AM, J. Bakshi wrote:
class=3D"Apple-interchange-newline">
class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-align: auto; text-indent: =
0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">Hello list,
the click =
enlarge facility of an image gallery generates the links in a
very =
ugly manner, like
````````````````
href=3D"http://192.168.1.1/reifenqualitaet/index.php?eID=3Dt x_cms_showpic&=
amp;file=3Duploads/tx_reifenqualitaetimage/image-227X227_02. jpg&bodyTa=
g=3D">http://192.168.1.1/reifenqualitaet/index.php?eID=3Dtx_ cms_showpic&am=
p;file=3Duploads/tx_reifenqualitaetimage/image-227X227_02.jp g&bodyTag=3D=
<body>&wrap=3D%20|%20&md5=3D9021563e8e2c9efadb629ddd197f=
22bf
````````````````
Is it somehow possible to generate the =
link little nicer by the help of
.htaccess =
?
It is possible, using =
mod_rewrite, to make most URLs look different. One person's notion of =
nice may be different from another. I would, however, recommend that you =
ask this question of users of this particular image gallery software, as =
they very likely have a standard way of doing what you're trying to =
do.
Failing that, I would suggest that you look =
at the mod_rewrite docs (
href=3D"http://httpd.apache.org/docs/trunk/rewrite/">http:// httpd.apache.o=
rg/docs/trunk/rewrite/ and
href=3D"http://wiki.apache.org/httpd/Rewrite)">http://wiki.a pache.org/http=
d/Rewrite) and see if there's something there that does what you =
need.
Also, note that .htaccess files are =
merely one of the places that you can put configuration directives. When =
possible, you should try to put directives in the server configuration =
file rather than in .htaccess =
files.
--
Rich Bowen
href=3D"mailto:rbowen@apache.org">rbowen@apache.org
>=
--Apple-Mail-2--160043642--
Re: can .htaccess make url better ?
am 08.03.2010 19:56:59 von Jonathan Zuckerman
--00504502e1b9746c7904814ea292
Content-Type: text/plain; charset=UTF-8
On Mon, Mar 8, 2010 at 6:10 AM, Rich Bowen wrote:
>
> On Mar 8, 2010, at 4:15 AM, J. Bakshi wrote:
>
> Hello list,
>
> the click enlarge facility of an image gallery generates the links in a
> very ugly manner, like
>
> ````````````````
>
> http://192.168.1.1/reifenqualitaet/index.php?eID=tx_cms_show pic&file=uploads/tx_reifenqualitaetimage/image-227X227_02.jp g&bodyTag=
> &wrap=%20|%20&md5=9021563e8e2c9efadb629ddd197f22bf
> ````````````````
>
> Is it somehow possible to generate the link little nicer by the help of
> .htaccess ?
>
>
> It is possible, using mod_rewrite, to make most URLs look different. One
> person's notion of nice may be different from another. I would, however,
> recommend that you ask this question of users of this particular image
> gallery software, as they very likely have a standard way of doing what
> you're trying to do.
>
> Failing that, I would suggest that you look at the mod_rewrite docs (
> http://httpd.apache.org/docs/trunk/rewrite/ and
> http://wiki.apache.org/httpd/Rewrite) and see if there's something there
> that does what you need.
>
> Also, note that .htaccess files are merely one of the places that you can
> put configuration directives. When possible, you should try to put
> directives in the server configuration file rather than in .htaccess files.
>
> --
> Rich Bowen
> rbowen@apache.org
>
Hey Rich, and anybody else who knows about this, what you've just said
touches on a question I've been wondering about: a few folks at work have
always told me that .htaccess was a really slow way to load configuration
because it needs to be checked per directory, as opposed to the global
configuration in httpd.conf or whatever that can be cached for the whole
webserver.
How true is this really? I've worked on a couple of high-load
high-availability webservers and we've never made a point of putting general
site configuration and rewrite rules in the httpd.conf file, using .htaccess
in the site root instead..
Having the ability to modify .htaccess without needing to restart the
web-servers is nice but certainly not essential, we generally restart the
webservers anyway when we make changes to the site in order to clear the
op-code cache. I'm wondering though if we could retire a server and still
support the same load, or at least see performance increases with a little
jiggering of the configuration..
I guess the way to test this would be to just do it and see the results,
I'll let you know what I find out, but hearing about actual experiences from
anybody else would be nice too.
--00504502e1b9746c7904814ea292
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Mon, Mar 8, 2010 at 6:10 AM, Rich Bowen
dir=3D"ltr"><
rbowen@rcbowen.com=
a>> wrote:
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mar =
8, 2010, at 4:15 AM, J. Bakshi wrote:
pan style=3D"border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvet=
ica;font-size:medium;font-style:normal;font-variant:normal;f ont-weight:norm=
al;letter-spacing:normal;line-height:normal;text-align:auto; text-indent:0px=
;text-transform:none;white-space:normal;word-spacing:0px">He llo list,
the click enlarge facility of an image gallery generates the links in a=
very ugly manner, like
````````````````
..168.1.1/reifenqualitaet/index.php?eID=3Dtx_cms_showpic& ;file=3Duploads/=
tx_reifenqualitaetimage/image-227X227_02.jpg&bodyTag=3D" target=3D"_bla=
nk">http://192.168.1.1/reifenqualitaet/index.php?eID=3Dtx_cm s_showpic&f=
ile=3Duploads/tx_reifenqualitaetimage/image-227X227_02.jpg&a mp;bodyTag=3D=
a><body> &wrap=3D%20|%20&md5=3D9021563e8e2c9efadb629ddd197f22 b=
f
````````````````
Is it somehow possible to generate the link little =
nicer by the help of
.htaccess ?
=
It is possible, using mod_rewrite, to make most URLs look different. O=
ne person's notion of nice may be different from another. I would, howe=
ver, recommend that you ask this question of users of this particular image=
gallery software, as they very likely have a standard way of doing what yo=
u're trying to do.
Failing that, I would suggest that you look at the mod_=
rewrite docs (
t=3D"_blank">http://httpd.apache.org/docs/trunk/rewrite/ andÂ
ef=3D"http://wiki.apache.org/httpd/Rewrite)" target=3D"_blank">http://wiki.=
apache.org/httpd/Rewrite) and see if there's something there that d=
oes what you need.
Also, note that .htaccess files are merely one of the p=
laces that you can put configuration directives. When possible, you should =
try to put directives in the server configuration file rather than in .htac=
cess files.
--
Rich Bowen
iv>rbowen@apache.org=
Hey Rich, and anybody el=
se who knows about this, what you've just said touches on a question I&=
#39;ve been wondering about: a few folks at work have always told me that .=
htaccess was a really slow way to load configuration because it needs to be=
checked per directory, as opposed to the global configuration in httpd.con=
f or whatever that can be cached for the whole webserver.
How true is this really? I've worked on a couple of=
high-load high-availability webservers and we've never made a point of=
putting general site configuration and rewrite rules in the httpd.conf fil=
e, using .htaccess in the site root instead..
Having the ability to modify .htaccess without needing to restart the =
web-servers is nice but certainly not essential, we generally restart the w=
ebservers anyway when we make changes to the site in order to clear the op-=
code cache. Â I'm wondering though if we could retire a server and =
still support the same load, or at least see performance increases with a l=
ittle jiggering of the configuration..
I guess the way to test this would be to just do it and see the result=
s, I'll let you know what I find out, but hearing about actual experien=
ces from anybody else would be nice too.
--00504502e1b9746c7904814ea292--
Re: can .htaccess make url better ?
am 08.03.2010 20:35:21 von Philip Wigg
On 8 March 2010 18:56, Jonathan Zuckerman wrote:
> Hey Rich, and anybody else who knows about this, what you've just said
> touches on a question I've been wondering about: a few folks at work have
> always told me that .htaccess was a really slow way to load configuration
> because it needs to be checked per directory, as opposed to the global
> configuration in httpd.conf or whatever that can be cached for the whole
> webserver.
> How true is this really? I've worked on a couple of high-load
> high-availability webservers and we've never made a point of putting gene=
ral
> site configuration and rewrite rules in the httpd.conf file, using .htacc=
ess
> in the site root instead..
> Having the ability to modify .htaccess without needing to restart the
> web-servers is nice but certainly not essential, we generally restart the
> webservers anyway when we make changes to the site in order to clear the
> op-code cache. =A0I'm wondering though if we could retire a server and st=
ill
> support the same load, or at least see performance increases with a littl=
e
> jiggering of the configuration..
> I guess the way to test this would be to just do it and see the results,
> I'll let you know what I find out, but hearing about actual experiences f=
rom
> anybody else would be nice too.
There's a useful section in the documentation about this subject:-
http://httpd.apache.org/docs/2.2/howto/htaccess.html#when
-- Phil
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: can .htaccess make url better ?
am 09.03.2010 11:53:01 von joydeep
On 03/09/2010 01:05 AM, Philip Wigg wrote:
> On 8 March 2010 18:56, Jonathan Zuckerman wrote:
>
>> Hey Rich, and anybody else who knows about this, what you've just said
>> touches on a question I've been wondering about: a few folks at work have
>> always told me that .htaccess was a really slow way to load configuration
>> because it needs to be checked per directory, as opposed to the global
>> configuration in httpd.conf or whatever that can be cached for the whole
>> webserver.
>> How true is this really? I've worked on a couple of high-load
>> high-availability webservers and we've never made a point of putting general
>> site configuration and rewrite rules in the httpd.conf file, using .htaccess
>> in the site root instead..
>> Having the ability to modify .htaccess without needing to restart the
>> web-servers is nice but certainly not essential, we generally restart the
>> webservers anyway when we make changes to the site in order to clear the
>> op-code cache. I'm wondering though if we could retire a server and still
>> support the same load, or at least see performance increases with a little
>> jiggering of the configuration..
>> I guess the way to test this would be to just do it and see the results,
>> I'll let you know what I find out, but hearing about actual experiences from
>> anybody else would be nice too.
>>
> There's a useful section in the documentation about this subject:-
>
> http://httpd.apache.org/docs/2.2/howto/htaccess.html#when
>
> -- Phil
>
>
Thank to all of you for your help and links. I'll definitely give an
in-depth look into those.
wish you all a nice time.
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org