Jump to content
  • 0

pomoc Doména 3 řady pomocí .htaccess


Ondrej Igar

Dotaz

Dobrý večer nebo den,

 

chtěl bych se zeptat, jestly by mi někdo pomohl.

 

U endora.cz mám doménu resp. xille.cz

DNS mám nasměrovaný na VPS kde mám Debian (I s Apachem)

 

Chtěl bych udělat z tohodle: http://www.xille.cz/images/ >toto> http://www.images.xille.cz/

 

Skoušel jsem různé návody, z WEDOSU...

 

Teď je v .htaccess nahraný tento (z http://aurielle.cz/presmerovavani-subdomen-pomoci-htaccess/)

A složku images mám v /cat/

RewriteEngine On

#redirect subdomains to appropriate categories
RewriteCond %{HTTP_HOST} ^(.+)\.xille\.cz$ [NC]
RewriteRule ^.*$ http://xille.cz/cat/%1 [R=301,L]

 

Ale nefunguje to, dokázal by mi někdo poradit? Za každou radu děkuji!

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

  • 0

RewriteEngine on

RewriteCond $1 !^adminky/

RewriteCond %{HTTP_HOST} ^adminky\.lcs-host\.eu

Rewriterule (.*) /adminky/$1 [L]

 

príklad subdomény adminky.lcs-host.eu v zložke adminky bude obsah webu

 

musiš mať povolene htaccess a mod_rewrite ,po zakladnej inštalácii apache2 to nie je povolené

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...