Proszę o poprawienie .htaccess

Tutaj należy zgłaszać problemy z działaniem serwisu.

Proszę o poprawienie .htaccess

Postprzez corrweta » Pn mar 05, 12 21:31

Witam oto moje .htaccess co musze zrobić żeby działało :

Kod: Zaznacz cały
RewriteEngine on

#RewriteBase /forum

RewriteRule ^cat([0-9]*)\.htm$ ./index.php?c=$1 [L,QSA]RewriteRule ^(cat|.*-cat)([0-9]*)\.htm$ ./index.php?c=$2 [L,QSA]
RewriteRule ^(u|.*,u),([0-9]*)\.htm$ ./profile.php?mode=viewprofile&u=$2 [L,QSA]
RewriteRule ^(g|.*,g),([0-9]*)\.htm$ ./groupcp.php?g=$2 [L,QSA]

#
RewriteRule ^(forum|.*-vf)([0-9]+)-([0-9]+),([0-9]+)\.htm$ ./viewforum.php?f=$2&topicdays=$3&start=$4 [L,QSA]
RewriteRule ^(forum|.*-vf)([0-9]+),([0-9]+)\.htm$ ./viewforum.php?f=$2&start=$3 [L,QSA]
RewriteRule ^(forum|.*-vf)([0-9]+)\.htm$ ./viewforum.php?f=$2 [L,QSA]

RewriteRule ^prev_topic/([0-9]+)\.htm$ ./viewtopic.php?t=$1&view=previous [L,QSA]
RewriteRule ^next_topic/([0-9]+)\.htm$ ./viewtopic.php?t=$1&view=next [L,QSA]
#
#
RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)-([0-9]+)-([a-zA-Z]+),([0-9]+)\.htm$ ./viewtopic.php?t=$3&postdays=$4&postorder=$5&start=$6 [L,QSA]
RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z0-9]+),([0-9]+)\.htm$ ./viewtopic.php?t=$3&start=$7&postdays=$4&postorder=$5&highlight=$6 [L,QSA]
#
RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+),([0-9]+)\.htm$ ./viewtopic.php?t=$3&start=$4 [L,QSA]
RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)\.htm$ ./viewtopic.php?t=$3 [L,QSA]
RewriteRule ^postlink/([0-9]+)\.htm$ ./viewtopic.php?p=$1 [L,QSA]

RewriteRule ^search\.htm/authors/(.+),([0-9]+)$ ./search.php?search_author=$1&start=$2 [L,QSA]
#
RewriteRule ^search\.htm/([0-9a-z]+),([0-9]+)$ ./search.php?search_id=$1&start=$2 [L,QSA]
RewriteRule ^search\.htm/([0-9a-z]+)$ ./search.php?search_id=$1 [L,QSA]

#
#
RewriteRule ^members/([a-z]+)_([a-z]*)-([A-Za-z]+),([0-9]+)\.htm$ ./memberlist.php?letter=$2&mode=$1&order=$3&start=$4 [L,QSA]
RewriteRule ^members(\.htm|/?)$ ./memberlist.php [L,QSA]

RewriteRule ^profiles/([0-9]+)\.htm$ ./profile.php?mode=viewprofile&u=$1 [L,QSA]

RewriteRule ^groups/?([0-9]*)(\.htm)?$ ./groupcp.php?g=$1 [L,QSA]
RewriteRule ^groups/?$ ./groupcp.php [L,QSA]

#
RewriteRule ^sitemap,([0-9]+)\.htm$ ./sitemap.php?offset=$1 [L,QSA]

RewriteRule ^topics([0-9]+)/?$ ./viewforum.php?f=$1.htm [L,QSA]
RewriteRule ^(topics|postlink|prev_topic|next_topic)/?$ ./index.php [L,QSA]
RewriteRule ^profiles/?$ ./memberlist.php [L,QSA]

#htm to php
RewriteCond   %{REQUEST_FILENAME} !-f
RewriteCond   %{REQUEST_FILENAME} (.*)\.htm
RewriteRule   ^(.+)\.htm(\?.*)? $1.php$2 [E=WasHTML:yes]
RewriteCond   %{ENV:WasHTML} ^yes$
RewriteCond   %{REQUEST_FILENAME} !-f
RewriteRule   ^(.+)\.php(\?.*)? $1.htm$2
corrweta
 
Posty: 1
Dołączył(a): Pn mar 05, 12 21:29

Re: Proszę o poprawienie .htaccess

Postprzez wargo » So mar 10, 12 23:48

A jaki masz problem?
wargo
 
Posty: 1352
Dołączył(a): Cz lip 05, 07 16:59
Lokalizacja: Pleszew


Powrót do UGU.PL

Copyright © 2007-2011 ugu.pl
Wszelkie prawa zastrzeżone.
Polityka prywatności