| Subiectul anterior :: Subiectul următor |
| Autor |
Mesaj |
laurent1u
Data înscrierii: 21/Dec/2007
Mesaje: 60
|
| Trimis: Joi Mai 08, 2008 1:10 pm Titlul subiectului: Problema .htaccess |
|
|
Mi-am bagat un script la mine pe calculator care contine .htaccess si imi arata urmatorul mesaj:
Cod:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ....:).... and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
M-am uitat in httpd.conf
Cod:
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
.....
.....
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
Ce trebe setat sa nu mai apara chestia aceea....?! |
|
| Sus |
|
Quber
Data înscrierii: 27/Iun/2006
Mesaje: 791
Locație: localhost
|
| Trimis: Joi Mai 08, 2008 2:02 pm Titlul subiectului: |
|
|
| Ai ceva in htaccess ce nui place la serverul tau apache, uite in error log ce erroare iti da..! |
|
| Sus |
|
mihaitha
Data înscrierii: 04/Mai/2007
Mesaje: 1421
Locație: Sibiu
|
| Trimis: Joi Mai 08, 2008 2:16 pm Titlul subiectului: |
|
|
| Mai bine ne aratai ce contine .htaccess-ul cu pricina, decat httpd.conf. |
|
| Sus |
|
laurent1u
Data înscrierii: 21/Dec/2007
Mesaje: 60
|
| Trimis: Joi Mai 08, 2008 3:17 pm Titlul subiectului: |
|
|
asta scrie in .htaccess
Cod:
RewriteEngine On
RewriteBase /
RewriteRule ^muzica-manele/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^muzica-romaneasca/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^muzica-straina/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^muzica-house/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^muzica-albume/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^muzica-videoclipuri/([a-zA-Z0-9_$\-]+)\.html$ song.php
RewriteRule ^download-muzica-noua-manele/([a-zA-Z0-9_$\-]+)\.html$ manele.php
RewriteRule ^download-muzica-noua-romaneasca/([a-zA-Z0-9_$\-]+)\.html$ romaneasca.php
RewriteRule ^download-muzica-noua-straina/([a-zA-Z0-9_$\-]+)\.html$ straina.php
RewriteRule ^download-muzica-noua-house/([a-zA-Z0-9_$\-]+)\.html$ house.php
RewriteRule ^download-muzica-noua-albume/([a-zA-Z0-9_$\-]+)\.html$ albume.php
RewriteRule ^download-muzica-noua-videoclipuri/([a-zA-Z0-9_$\-]+)\.html$ videoclipuri.php
RewriteRule ^cauta/([a-zA-Z0-9_$\-]+)\.html$ cauta.php
RewriteRule ^acasa.html$ index.php
RewriteRule ^tag/([a-zA-Z0-9_$\-]+)\.html$ tagaz.php
este un script luat dupa net !
! Nu in toate imi apare acea eroare ! |
|
| Sus |
|
Quber
Data înscrierii: 27/Iun/2006
Mesaje: 791
Locație: localhost
|
| Trimis: Joi Mai 08, 2008 3:32 pm Titlul subiectului: |
|
|
E activat modulul Rewrite din Apache..?
Cod: LoadModule rewrite_module modules/mod_rewrite.so |
|
| Sus |
|
212
Data înscrierii: 12/Mai/2008
Mesaje: 13
|
| Trimis: Mar Mai 13, 2008 9:26 am Titlul subiectului: |
|
|
incearca sa pui un parametru la song.php
Cod:
RewriteRule ^muzica-romaneasca/([a-zA-Z0-9_$\-]+)\.html$ song.php?melodie=$1
muzica-romaneasca/song.php?melodie=voltaj
~
muzica-romaneasca/voltaj.html |
|
| Sus |
|
Mascka
Data înscrierii: 01/Oct/2005
Mesaje: 1282
Locație: Braila
|
| Trimis: Joi Mai 15, 2008 10:47 pm Titlul subiectului: |
|
|
| aa..... ce OS ruleaza pe serverul tau :roll: |
|
| Sus |
|
PHPRomania Bot
Bot Member
Data înscrierii: 27/Dec/2007
Mesaje: 1
Locaţie: Server Google |
| Trimis: Mie Dec 26, 2007 7:01 pm Titlul subiectului: Ad |
|
|
|
|
|
| Sus |
|
| |