.htacces someone to help me

Discuţii legate de instalarea şi funcţionarea unor MODificări vechi sau noi ale forumului phpBB 2.0.x.
Avatar utilizator
tomytza
Utilizator înregistrat
Mesaje: 64
Membru din: 31-Mar-2006, 12:00:57

.htacces someone to help me

Mesaj de tomytza »

Deci am Modul ala cu short url si nu stiu cum sa o fac sa mearga

deci am in phpBB root directory am .htacces si htacces.shorturl

in .htacces scrie

Cod: Selectaţi tot

DirectoryIndex index.html index.htm portal.php index.php

si htacces.shorturl scrie

Cod: Selectaţi tot

DirectoryIndex index.html index.htm portal.php index.php

############################################################

RewriteEngine On

############################################################

# prevent access from santy webworm a-e
RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{QUERY_STRING} ^(.*)rush=\%65\%63\%68 [OR]
RewriteCond %{QUERY_STRING} ^(.*)rush=echo [OR]
RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)esystem(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)union(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)UNION(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)alert\(document(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)SQL_INJECTION(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)wget\%20
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

# prevent pre php 4.3.10 bug
RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

# prevent perl user agent (most often used by santy)
RewriteCond %{HTTP_USER_AGENT} ^lwp.* [NC]
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

#########################################################
# Mod Rewrite Rules for Static URLs can be found in this file.
#
# You have to set the correct Path to your Forum here otherwise this will not work !
# Just change the "YOUR_PATH" in the below code to the path your Forum uses.
# For example if your Forum can be reached at http://www.myforum.com/phpBB2/ you have
# to set the path to this
#
# RewriteRule (.*) /phpBB2/index.php [L]
#                   ^^^^^^
#
# If your Forum can be reached at http://www.myforum.com you can delete the path part
#
# RewriteRule (.*) /index.php [L]
#
# After making all needed changes in this file rename it to .htaccess and delete the original
# .htaccess file
############################################################


RewriteCond %{REQUEST_FILENAME} /forums.html
RewriteRule (.*) /phpBB2/index.php [L]

RewriteCond %{REQUEST_FILENAME} /forumc([0-9]*).*
RewriteRule (.*) /phpBB2/index.php?c=%1 [L]

RewriteCond %{REQUEST_FILENAME} /forumc([0-9]*),(.*).html
RewriteRule (.*) /phpBB2/index.php?c=%1 [L]

RewriteCond %{REQUEST_FILENAME} /viewforum([0-9]*)-([0-9]*)-([0-9]*).html
RewriteRule (.*) /phpBB2/viewforum.php?f=%1&topicdays=%2&start=%3 [L]

RewriteCond %{REQUEST_FILENAME} /viewforum([0-9]*)-([0-9]*)-([0-9]*),(.*).html
RewriteRule (.*) /phpBB2/viewforum.php?f=%1&topicdays=%2&start=%3 [L]

RewriteCond %{REQUEST_FILENAME} /forum([0-9]*),(.*).html
RewriteRule (.*) /phpBB2/viewforum.php?f=%1 [L]

RewriteCond %{REQUEST_FILENAME} /forum([0-9]*).html
RewriteRule (.*) /phpBB2/viewforum.php?f=%1 [L]

RewriteCond %{REQUEST_FILENAME} /ptopic([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&view=previous [L]

RewriteCond %{REQUEST_FILENAME} /ntopic([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&view=next [L]

RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4 [L]

RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&start=%2 [L]

RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1 [L]

RewriteCond %{REQUEST_FILENAME} /fpost([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?p=%1#%1 [L]

RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
RewriteRule (.*) /phpBB2/viewtopic.php?t=%1&start=%2&postdays=%3&postorder=%4&highlight=%5 [L]

please help a pour man :innocent:

Deci cand activez shorurl imi apare cu forum[nr].html

si cand dau click nu merge zice page not found :weep:

si cum sa scrie exact ca pe myforum.ro

e. g. http://support.myforum.ro/am-bz-ceva-vt654445.html
Avatar utilizator
MJR
Fost coleg
Mesaje: 1021
Membru din: 10-Mar-2003, 03:30:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: constanta
Contact:

Mesaj de MJR »

poate ca nici nu exista acel mesaj catre care ai tu link. eu m-am plimbat prin forumul tau si merge f bine.
Avatar utilizator
tomytza
Utilizator înregistrat
Mesaje: 64
Membru din: 31-Mar-2006, 12:00:57

Mesaj de tomytza »

mjr scrie:poate ca nici nu exista acel mesaj catre care ai tu link. eu m-am plimbat prin forumul tau si merge f bine.
merge extraordinar de bene pentru ca nu am activat short url :(

si eu vreau sa fie activ ca imi place mai mult ajea :D


Uite activez acum short url si sa`mi spui mie "daca mai mere aja de bine"
Avatar utilizator
MJR
Fost coleg
Mesaje: 1021
Membru din: 10-Mar-2003, 03:30:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: constanta
Contact:

Mesaj de MJR »

da, merge la fel de bine. cel putin la mine.
Avatar utilizator
tomytza
Utilizator înregistrat
Mesaje: 64
Membru din: 31-Mar-2006, 12:00:57

Mesaj de tomytza »

scuza`ma dar nu facusem modificarea

http://img300.imageshack.us/my.php?imag ... 6526pc.jpg

astai linkul normal http://tyk.lx.ro/viewforum.php?f=24

astai este cu shorurl http://tyk.lx.ro/forum24.html

http://img209.imageshack.us/my.php?imag ... 5259pe.jpg

gata potzi incerca il las asha pana diseara adresa este http://tyk.lx.ro/index.php
Avatar utilizator
dorin
Fost coleg
Mesaje: 4620
Membru din: 24-Iun-2003, 23:23:29
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Puţin experimentat
Contact:

Mesaj de dorin »

Apache are Module mod_rewrite activat ?
Avatar utilizator
tomytza
Utilizator înregistrat
Mesaje: 64
Membru din: 31-Mar-2006, 12:00:57

Mesaj de tomytza »

acum revin cu o problema asemanatoare

Cum pun mod_rewrite la un phpb 2.0.20 ??
flowers
AdministratorAdministrator
Mesaje: 4641
Membru din: 03-Iun-2004, 17:50:34
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucureşti, România
Contact:

Mesaj de flowers »

tomytza scrie:acum revin cu o problema asemanatoare

Cum pun mod_rewrite la un phpb 2.0.20 ??
Cum l-ai pus si pana acum pe celelalte versiuni.
P.S. Ultima versiune e 2.0.21
Avatar utilizator
tomytza
Utilizator înregistrat
Mesaje: 64
Membru din: 31-Mar-2006, 12:00:57

Mesaj de tomytza »

problema e ca nu l-am pus era modificat el din "fabrica" :?
flowers
AdministratorAdministrator
Mesaje: 4641
Membru din: 03-Iun-2004, 17:50:34
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucureşti, România
Contact:

Mesaj de flowers »

Da-mi un link catre MOD, te rog, sa vad despre ce e vorba.
Închis

Înapoi la “2.0.x Suport pentru MODificări”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 14 vizitatori