как да включа mod_rewrite на php

  • Автор Автор Face
  • Начална дата Начална дата

Face

Registered
Инсталирам съм apache2.2... php5.2.3, mysql4.1.22, phpmyadmin 2.10.2.
Видях че тук има урок за това, не съм направил нещо по различно, с изключение на phpmyadmin (но той реално няма отношение към въпроса ми) Ако той все пак е включен как да разбера това, понеже ползвам mod_rewrite за имената на страництие да излизат по наичн който аз искам само че не сработва (ползвам .htaccess) със сигурно на хостина който ползвам работи.
изкарал съм си phpinfo, но нещо не ги виждам.
 
на phpinfo трябва да ти го покаже като лоднат модул Loaded Modules, ако го няма значи не е включен.

Enable mod_rewriteFind the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache
 
jooorooo каза:
на phpinfo трябва да ти го покаже като лоднат модул Loaded Modules, ако го няма значи не е включен.

Enable mod_rewriteFind the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache
 
Жоро, благодаря :)

Не мога да разбера какво искат да се направи тук:
Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

иначе сега се вижда че модула е включен.
 
Face каза:
Жоро, благодаря :)

Не мога да разбера какво искат да се направи тук:
Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

иначе сега се вижда че модула е включен.

намери ClearModuleList и ако не е в кавички, след това намери AddModule mod_rewrite.c и той не трябва да е с кавички
 
Face каза:
хм, странно изобщо не мога да намеря ClearModuleList AddModule mod_rewrite.c :shock:
ползвам find :) но notepad :):)

не знам, може би ако го има. нз :oops:
 
ето къде е ключа за бараката
на няколко места има
Код:
AllowOverride None
трябвада стане
Код:
AllowOverride All

ако след това в .htaccess файла трябва да коментирате

Код:
 Options+FollowSymLinks
да стане
Код:
#Options+FollowSymLinks
- просто прибавяте #
 

Back
Горе