Přihlásit se

Důležité Přesměrování Joomla

23. kvě 2012 10:59 #93887
Re: Přesměrování Joomla od ghost
Zkušený uživatel
co htaccess a presmerovani tam?
co presmerovani pres hlavicku v sablone?

jinak vas web vubec nejede a ne ze se presmerovava (nebo jste zadal spatne adresu)

Joomla! pro každého

23. kvě 2012 11:01 #93889
Odpověď od foizo
Uživatel
v tom htacces se moc nevyznám co mám hledat?

jo jinak to nefunguje protože znovu kopíruju souobory přez ftp tak tam nic ted neni kopíruju znova...

23. kvě 2012 11:03 #93892
Odpověď od foizo
Uživatel
jinak zkoušel jsem i změnit šablonu na základní co je v joomle ale stále mě to házelo na starý web...

23. kvě 2012 12:53 - 23. kvě 2012 12:54 #93897
Odpověď od foizo
Uživatel
to sem z toho jelen, prošel sem co sem mohl a nikde neni ani zmínka o sparks.foizo.cz, tak proč se t tam sakra furt přesměruje? a administrace na www.americanpitbullterrier-sparks.cz/administrator normálně funguje a nikde v nastavení taky neni....

23. kvě 2012 13:30 #93900
Odpověď od David
Nováček
A teď se podívejte do souboru v rootu .htaccess . Odhaduji, že tam bude redirect.

www.joomlista.cz - blog o CMS Joomla!
www.joomlaskoleni.cz - Joomla! školení
www.grapharts.cz/
www.grapharts.cz/cs/hosting - Hosting pro Joomla!

23. kvě 2012 14:48 #93901
Odpověď od foizo
Uživatel
jak už sem psal takhle vypadá .htaccess přímo v rootu, jinej nikde neni..i po přejmenování z txt žádná změna.

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.


Config.php

offline 1
offline_message Tyto stránky jsou právě v údržbě.<br /> Zkuste se připojit za chvíli.
display_offline_message 0
offline_image
sitename Sparks
editor jce
captcha 0
list_limit 20
access 1
debug 0
debug_lang 0
dbtype mysql
host xxxxxx
user xxxxxx
password xxxxxx
db mysql43275
dbprefix spar_
live_site
secret oU3971zIvSP0Cxcc
gzip 0
error_reporting default
helpurl help.joomla.org/proxy/index.php?option=c...eyref=Help16:{keyref }
ftp_host americanpitbullterrier-sparks.cz
ftp_port 21
ftp_user xxxxxx
ftp_pass xxxxxx
ftp_root
ftp_enable 0
offset Europe/Prague
offset_user UTC
mailer mail
mailfrom info@americanpitbullterrier-sparks.cz
fromname ZKO Březno II.
sendmail /usr/sbin/sendmail
smtpauth 0
smtpuser xxxxxx
smtppass xxxxxx
smtphost localhost
smtpsecure none
smtpport 25
caching 0
cache_handler file
cachetime 15
MetaDesc kynologické cvičiště Březno II.
MetaKeys american,pit,bull,terrier,americký,cvičák,březno,sparks,teriér,zkoušky,čks,famfulík,chomutov,kynologie
MetaTitle 1
MetaAuthor 1
robots
sef 1
sef_rewrite 1
sef_suffix 0
unicodeslugs 0
feed_limit 10
log_path /home/americanpitbullterrier-sparks.cz/americanpitbullterrier-sparks.cz/log
tmp_path /home/americanpitbullterrier-sparks.cz/americanpitbullterrier-sparks.cz/tmp
lifetime 15
session_handler database
MetaRights
sitename_pagetitles 1
force_ssl 0
feed_email author
cookie_domain
cookie_path

23. kvě 2012 18:40 #93906
Odpověď od karel
Zkušený uživatel
Přesměrovávat může i samotný webový server (v závislosti na tom, co můžete nastavit sám, nebo na vyžádání).
Přesměrovávat může i php skript.
Podle odpovědi serveru:
301 Moved permanently
________________________
Hlavičky odezvy
Content-Length 0
Content-Type text/html
Date Wed, 23 May 2012 16:12:08 GMT
Location www.sparks.foizo.cz/
Server Apache
________________________
osobně nepoznám, jestli jde o php skript, nebo nastavení serveru.

.htaccess u některých hostingu je vidět v "lepších" FTP klientech (třeba FileZilla)

Znáte-li řešení, sdělte ho - pomůžete ostatním při řešení stejného problému, i případný "rádce" bude vědět, poradil-li správně nebo špatně.

24. kvě 2012 11:39 #93923
Odpověď od foizo
Uživatel
napsal jsem maila na hosting no, když nic tak hold udělám novou čistou instalačku a budu to muset všechno znovu dodělat =o/

25. kvě 2012 08:04 #93952
Odpověď od foizo
Uživatel
takže hosting mi jenom potrvdil že to může být .htaccess a měl by to být ten který vidím, ale v něm žádná zmíňka o přesměrování nastavená není (viz. výpis z .htaccess výše). Takže to bude asi problém někde jinde, v templatu to asi nebude prootže to nefunguje ani po změně templatu, napadá Vás někoho něco kam mrknout kde by se toto nastavovalo? Prohledávám soubory joomly atd jestli neobsahuje url sparks.foizo.cz ale to je asi běh na dlouhou trať. Redirect checker mi akorát napíše:

Response
Checked link: www.americanpitbullterrier-sparks.cz

Type of redirect: 301 Moved Permanently

Redirected to: www.sparks.foizo.cz/


To mi ale jaksi nepomůže když newím který skript a kde to dělá...

25. kvě 2012 08:51 #93954
Odpověď od karel
Zkušený uživatel
To Vám toho hosting moc neřekl...
Pokud to není v souborech, může to být v databázi (stáhněte si export DB, prohledejte obsah).
Nastavení domény, nebo hostingu jste kontroloval?

Znáte-li řešení, sdělte ho - pomůžete ostatním při řešení stejného problému, i případný "rádce" bude vědět, poradil-li správně nebo špatně.

25. kvě 2012 09:01 #93955
Odpověď od foizo
Uživatel
Co se týče hostingy to by mělo být všechno v pořádku, kort když mi funguje administrace joomly normálně.. co se týče database zkusim ten export a prohledám to no

25. kvě 2012 09:10 #93956
Odpověď od foizo
Uživatel
tak jsem zkusil v phpadminu vyhledat ve všech tabulkách sparks.foizo.cz s parametrem "všechna slova" a výsledek "Celkem: 8 odpovídajících záznamů"

1x _modules
1x _k2_items
1x _k2_comments
1x _extensions
1x _contact_details
3x _acymailing_history

25. kvě 2012 09:21 #93957
Odpověď od foizo
Uživatel
A co toto? pluigin Canonicalization? - poslední řádky a v DB je

{"correct_host":"www.sparks.foizo.cz","no_servername":"0","backend":"0"}

<?php
/**
* SEO Canonicalizatoin
*
* This ensures that a site is accessible only via a single location by
* determining the HTTP_HOST
*
* PHP4/5
*
* Created on Apr 17, 2007
*
* @package JAuthTools
* @author Sam Moffatt <pasamio@gmail.com>
* @license GNU/GPL www.gnu.org/licenses/gpl.html
* @copyright 2008 Sam Moffatt
* @version SVN: $Id:$
* @see JoomlaCode Project: joomlacode.org/gf/project/pasamioprojects/
*/

jimport('joomla.plugin.plugin');

/**
* SEO Canonicalization
* Reconfigures site locations
*/
class plgSystemCanonicalization extends JPlugin {

/**
* Constructor
*
* For php4 compatability we must not use the __constructor as a constructor for plugins
* because func_get_args ( void ) returns a copy of all passed arguments NOT references.
* This causes problems with cross-referencing necessary for the observer design pattern.
*
* @param object $subject The object to observe
* @since 1.5
*/
function plgSystemCanonicalization(& $subject, $config) {
parent :: __construct($subject, $config);
}

function onAfterInitialise() {
$correct_host = $this->params->get('correct_host','');
if(!$correct_host) return false;
if(!$this->params->get('backend',0)) {
$app =& JFactory::getApplication();
if($app->isAdmin()) return false;
}

// This should probably be filtered
$no_servername = $this->params->get('no_servername',0);
if(@$_SERVER == $correct_host || (!$no_servername && @$_SERVER == $correct_host)) {
return true;
}
$uri = JFactory::getUri();

if($uri->isSSL()) {
$url = 'https://';
} else {
$url = 'http://';
}
// And maybe this, though probably not
$url .= $correct_host . $_SERVER;
header('Location: '. $url, true, 301);
$app = & JFactory::getApplication();
$app->close();
}
}

25. kvě 2012 09:37 #93958
Odpověď od foizo
Uživatel
YEAAAAAAHHHHH!!! a sme doma bylo to ono, a teď mi někdo prosím vysvětlete jak je možné že tam byla nastavena stará doména?

25. kvě 2012 10:12 #93959
Odpověď od karel
Zkušený uživatel
Nastavení i chování jednotlivých rozšíření, které máte nainstalovány navíc (které to jsou víte jen Vy), vám vysvětli "někdo jiný"

Znáte-li řešení, sdělte ho - pomůžete ostatním při řešení stejného problému, i případný "rádce" bude vědět, poradil-li správně nebo špatně.

Powered by Fórum