Pagina 1 din 2

.htacces someone to help me

Scris: 18-Apr-2006, 22:48:47
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

Scris: 19-Apr-2006, 00:14:14
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.

Scris: 19-Apr-2006, 13:08:20
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"

Scris: 19-Apr-2006, 13:10:31
de MJR
da, merge la fel de bine. cel putin la mine.

Scris: 19-Apr-2006, 15:07:04
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

Scris: 08-Mai-2006, 23:16:23
de dorin
Apache are Module mod_rewrite activat ?

Scris: 17-Iun-2006, 12:27:34
de tomytza
acum revin cu o problema asemanatoare

Cum pun mod_rewrite la un phpb 2.0.20 ??

Scris: 17-Iun-2006, 12:44:56
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

Scris: 17-Iun-2006, 12:52:46
de tomytza
problema e ca nu l-am pus era modificat el din "fabrica" :?

Scris: 17-Iun-2006, 12:56:03
de flowers
Da-mi un link catre MOD, te rog, sa vad despre ce e vorba.