We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

modrewrite


snajper
11-11-2012, 00:35
Jak dokładnie ma być? Już drugi dzień siędzę z tym i nie mogę nic wykombinować, stoję w miejscu. Na innych serwerach śmiga aż miło. Googluje, szperam, czytam manuale ovh, nic. Ludzie wypisują, że na serwerach OVH jest inaczej. Czyli jak?

Widmo
09-11-2012, 11:04
Tam w drugiej sekcji masz błąd.

no4b
08-11-2012, 00:38
http://rtfm.killfile.pl/

snajper
08-11-2012, 00:11
Witam,

co mam źle w regułach, że wyświetla białą stronę jak klikne na rozwinięcie newsa?:

Kod:
RewriteEngine On


RewriteRule ^home index.php [L]
RewriteRule ^register index.php?module=register [L]
RewriteRule ^login_submit index.php?module=login&action=submit [L]
RewriteRule ^logout index.php?module=login&action=logout [L]
RewriteRule ^profile/([0-9]+) index.php?module=profile&id=$1 [L]
RewriteRule ^profile_edit index.php?module=profile&action=edit_profile&what=main [L]
RewriteRule ^profile_gallery index.php?module=profile&action=gallery [L]
RewriteRule ^profile_add_photo index.php?module=profile&action=gallery&what=add_photo [L]
RewriteRule ^profile_delete_photo index.php?module=profile&action=gallery&what=delete_photo [L]
RewriteRule ^profile_change_pass index.php?module=profile&action=edit_profile&what=pass [L]
RewriteRule ^profile_update_pass index.php?module=profile&action=edit_profile&what=update_pass [L]
RewriteRule ^profile_update index.php?module=profile&action=edit_profile&what=update [L]
RewriteRule ^profile_add_post/([0-9]+) index.php?module=board&action=add_post&id=$1 [L]
RewriteRule ^change_photo index.php?module=profile&action=photo&what=upload [L]
RewriteRule ^add_friend/id_user/([0-9]+) index.php?module=profile&action=add_friend&id_user=$1 [L]
RewriteRule ^accept_friend/id/([0-9]+) index.php?module=profile&action=accept_friend&id=$1 [L]
RewriteRule ^race/id/([0-9]+) index.php?module=race&id=$1 [L]
RewriteRule ^add_comment_race/id/([0-9]+) index.php?module=race&action=add_comment&id=$1 [L]
RewriteRule ^add_comment_news/id/([0-9]+) index.php?module=news&action=add_comment&id=$1 [L]

RewriteRule ^news/([0-9]+)/([^-]+) index.php?module=news&id=$1 [L]
RewriteRule ^race/([0-9]+)/([^-]+) index.php?module=race&id=$1 [L]
RewriteRule ^join_to_race/([0-9]+) index.php?module=race&action=join_to_race&id=$1 [L]


RewriteRule ^calendar/page/([0-9]+) index.php?module=calendar&page=$1 [L]
RewriteRule ^my_calendar/page/([0-9]+) index.php?module=my_calendar&page=$1 [L]
RewriteRule ^archive/page/([0-9]+) index.php?module=archive&page=$1 [L]
RewriteRule ^archive_news/page/([0-9]+) index.php?module=archive&cat=1&page=$1 [L]
RewriteRule ^archive_po/page/([0-9]+) index.php?module=archive&&cat=2&page=$1 [L]
RewriteRule ^users/page/([0-9]+) index.php?module=users&page=$1 [L]
RewriteRule ^search/page/([0-9]+) index.php?module=search&page=$1 [L]
RewriteRule ^active/code/([^-]+) index.php?module=register&action=activate&code=$1 [L]

RewriteRule ^add_content/([^-]+) index.php?module=add_content&what=$1 [L]
RewriteRule ^add_content_news index.php?module=add_content&what=news&action=submit [L]
RewriteRule ^add_content_race index.php?module=add_content&what=race&action=submit [L]
RewriteRule ^add_content_gallery index.php?module=add_content&what=gallery&action=submit [L]

RewriteRule ^blog/([^-]+) index.php?module=blog&name=$1 [L]

RewriteRule ^add_blog index.php?module=blog&action=blog_add [L]