Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17098

Re: Set web page lang via .htaccess

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: Set web page lang via .htaccess
Date Sat, 24 Sep 2016 21:44:08 +0200
Organization PointedEars Software (PES)
Lines 46
Message-ID <5198799.lOV4Wx5bFT@PointedEars.de> (permalink)
References <ns626m$bb$1@opal.futuro.pl>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1474746248 19760 eJwNy8EBADEEBMCWCBblOKL/EnLzHxMw2hUGtbVt8Hw5csvUsuCng4uv17ksqJqlyCZy/xPFAyM3EM8= (24 Sep 2016 19:44:08 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 24 Sep 2016 19:44:08 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwQkBwDAIA0BLlCcpcgYU/xJ2F4aDpiPgsbH5wW2tGSkPovNOVA+n2rPmK/W8MC2xLu1K6qVzmcIngh9XwBU5
X-NNTP-Posting-Host eJwNydsBADEEBMCWCOtRjgj9l3A3vwMxtnY1mGKxW/ChqaEXHDDZvPqyixRSEvun9/ApcLbzByuGEWA=
Cancel-Lock sha1:/FgJOYewhpoWTah2SCrji5wCB2A=
Xref csiph.com comp.lang.php:17098

Show key headers only | View raw


dentysta wrote:

> I'm trying to prepare right .htaccee mod rewrite rules for my online shop.

.htaccess, mod_rewrite
 
> […]
> How to redirect to (sufix with default lang_id) […] ?

_suffix_
 
> The following rule, added to .htassess doesn't work properly

.htaccess

> :Location /
> Redirect 301 /pl/index.php

That your application is a PHP-based application that requires redirection 
and/or URL rewriting does not make server-side redirection or URL rewriting 
*without PHP* on-topic here.  It is a Web server (here: Apache/httpd) 
feature, to be discussed in comp.infosystems.www.servers.ALL (here: probably 
ciws.unix).

Your "rule" (better: directive) does not work properly (that is _not_ a 
problem *description*) because it uses invented syntax.

Also, combining *simple* redirection with URL rewriting is not a good idea, 
unless you really know what you are doing.  You should then do redirection 
with URL rewriting instead, if necessary.

IOW: RTFM → <http://httpd.apache.org/docs/>

Finally, you should post to Usenet with your real name in the “From” header 
field value, and proofread your postings.  We have learned from experience 
that pseudonymouses are likely to be lusers (including trolls), and sloppy 
coders are likely to be sloppy thinkers, probably wasting our precious free 
time.

<http://catb.org/esr/faqs/smart-questions.html>

-- 
PointedEars
Zend Certified PHP Engineer 
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Set web page lang via .htaccess "dentysta" <witekr@interia.pl> - 2016-09-24 16:22 +0200
  Re: Set web page lang via .htaccess Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-24 10:55 -0400
  Re: Set web page lang via .htaccess Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-24 21:44 +0200
    Re: Set web page lang via .htaccess Luuk <luuk@invalid.lan> - 2016-09-24 22:47 +0200
      Re: Set web page lang via .htaccess "R.Wieser" <address@not.available> - 2016-09-25 09:40 +0200

csiph-web