vidim localhost/joomla/ ali i localhost/joomla/index.php

Moderator: cicans

Locked
Filipsa
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 110
Joined: Tue Sep 22, 2009 12:14 pm

vidim localhost/joomla/ ali i localhost/joomla/index.php

Post by Filipsa » Mon Nov 26, 2012 12:59 pm

Pozdrav

Koristim Joomla 2.5 na localhost-u.Takodje Xampp 1.8.1 i Win Vista.
Promenio sam htaccess.txt to .htaccess za url rewriting.
Kada pristupam sajtu mogu da vidim i localhost/joomla/ ali i localhost/joomla/index.php.

Postavio sam isto pitanje na forumu na engleskom jeziku i dobio sam razne odgovore.
Od toga da je to normalno.

Preko saveta da promenim u .htaccess sledece
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://localhost/joomla [R=301,L]
ili RewriteRule ^index\.php$ http://127.0.0.1/joomla [R=301,L]

Do ovog saveta,na engleskom se lakse razume...
"You just need to give it time to cache your system might be cashed but your local server or internet provider might cache at different times"

Posle svega navedenog i dalje vidim localhost/joomla/ ali i localhost/joomla/index.php

Molim da mi neko pomogne oko ovoga.Znam da je vec pisano na ovu temu ali nista mi nije pomoglo da resim ovaj problem.

Evo i deo sadrzaja gde dodajem prethodno u .htaccess-u ako nesto pomaze.

# 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
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://localhost/joomla [R=301,L]

# 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.

Locked

Return to “Instalacija i početnička pitanja”