Форум программистов, компьютерный форум, киберфорум
Joomla
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.55/11: Рейтинг темы: голосов - 11, средняя оценка - 4.55
0 / 0 / 1
Регистрация: 05.09.2014
Сообщений: 62
1

Как сделать что бы первым загружался не index.php а index.html

09.09.2014, 01:19. Показов 2058. Ответов 3
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Как сделать что бы первым загружался не index.php а index.html

Находил в гугл инфо, пробовал ничего не получается...
Вот мой код с htaccess.txt - Может что то конкретное нужно исправить, подскажите пожалуйста

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
##
# @package    Joomla
# @copyright  Copyright (C) 2005 - 2014 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 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.
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
09.09.2014, 01:19
Ответы с готовыми решениями:

Удалил файлы index.html и index.php
Народ ! надеюсь поможете , т к есть нормальный сайт , но я случайно удалил Index.php файл из...

Можно ли index.hml просто переименовать в index.php
мне надо сделать шаблон, вопрос можно ли index.hml просто переименовать в index.php? Добавлено...

Как сделать url без index.php?
Как сделать чтобы адрес был http://localhost/cars а не так : http://localhost/index.php/cars

Файл Index.php Подскажите что делать
Всем привет. Ситуация такая: Делаю сайт на joomla - http://multiservise-ruspain.com/ Нужно ...

3
138 / 138 / 29
Регистрация: 06.08.2013
Сообщений: 878
Записей в блоге: 3
09.09.2014, 13:58 2
не надо ничего искать...

То что тебе сказала Taatshi это не обязательно можно использовать отдельный шаблон который использует файл index.php, а не index.html и не мучаться... У тебя все равно два раздела будут использовать два разных шаблона...
0
0 / 0 / 1
Регистрация: 05.09.2014
Сообщений: 62
09.09.2014, 14:20  [ТС] 3
Продолжим в прошлой теме)) Файл Index.php Подскажите что делать, эта закрыта
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
09.09.2014, 17:30 4
Андрей9191, это зависит от настроек хостинга. Спрашивайте в техподдержке.
0
09.09.2014, 17:30
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
09.09.2014, 17:30
Помогаю со студенческими работами здесь

Как убрать из адреса index. php
Подскажите как убрать из адреса index.php, много форумов просмотрел, не один вариант не помог....

Логотип в index.php
Не пинайте сильно ногами - пытаюсь сделать свой первый шаблон для joomla завис на вроде бы простом...

Откуда берутся лишние файлы index.html
Здравствуйте! Проблема в том, что во всех папках сайта на joomla вдруг появляются файлы index.html...

Перезаписал index.php в шаблоне!
Здравствуйте, работаю на joomla 1.5, редактировал html и css в шаблоне и случайно сохранил...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
4
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru