joomla 1.5.22
cpanel accelerated 2
sve seo postavke uključene
Pozdrav ekipa imam sljedeći problem kada zastitim administrator direktorij u cpanelu svako spremanje rezultira s pogreškom
www.mojastranica.com/401.shtml sa sadržajem
Not Found
The requested URL /401.shtml was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
ova greška se događa od danas kada sam u htacces-u dodao kod koji radi sljedeće :
mojastranica.com ide na www.mojastranica.com tj. preusmjeravanje
Stavi ovdje čitav .htaccess samo izmjeni URL svoje stranice.
Mada čudno objašnjeno. Kako zaštićuješ Admin sa .htaccess ? Password ili pokušavaš neki redirect na drugi URL ?
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
ovo je dio koda u htacces-u koji obavlja redirect sa stranica.com na www.stranica.com, nadalje pomoću alata u cpanelu zaštitio sam administrator folder.
e sad kada obavljam zatvaranje, spremanje članka ili modula i slično u joomli dolazi do navedene pogreške.
Kada ugasim zaštitu u cpanelu, sve radi super, redirect ok tada, kada izbrišem kod za redirect uz zastitu u cpanelu, opet administracija radi naravno bez redirecta, sad me zanima jel problem u htaccesu u tom folderu kojeg štitim tj. administrator folderu.
Sorry, nisam bio na forumu dugo. Ne znam jesi sredio problem.
Ako ti je ovo .htaccess iz admin mape onda skloni sve te Joomla gluposti iz njega i stavi samo tih par linija koda za Allow, Deny i login podatke. Ovo ostalo ti uopće ne treba za zaštitu foldera.
pozzz nisam ni ja dugo jer baš i nema konkretnih odgovora, hm.. ipak nije mi to htacces iz admina on je jednostavan i čist, ovo je iz root direktorija tj gdje je index od stranice i omogućava mi optimizaciju stranice i preusmjeravanje sa stranica.com na www.stranica.com, samo je problem ažuriranje u backend-u tada dolazi do pojave pogreške
Koristiš neku posebnu SEF ekstenziju, ili od Joomla ?
Ja imam ovo u .htaccess i nikad nije pravilo probleme. Zamijeni xxxx sa svojim podacima:
## Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?xxxxxx.hr$ [NC]
# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/xxxxxx/
# Don't change these lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /xxxxxx/$1 [L]
# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?xxxxxx.hr$ [NC]
RewriteRule ^(/)?$ xxxxxx/index.php [L]
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /