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


Groups > comp.lang.php > #17098

Re: Set web page lang via .htaccess

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: Set web page lang via .htaccess
Date 2016-09-24 21:44 +0200
Organization PointedEars Software (PES)
Message-ID <5198799.lOV4Wx5bFT@PointedEars.de> (permalink)
References <ns626m$bb$1@opal.futuro.pl>

Show all headers | 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