Salut,
J'ai tout essayé mais rien n'y fait, impossible de mettre en place le rewriting chez 1&1, il doit pourtant y avoir un bug dans mon .htaccess mais je ne vois pas !
Merci,
J'ai tout essayé mais rien n'y fait, impossible de mettre en place le rewriting chez 1&1, il doit pourtant y avoir un bug dans mon .htaccess mais je ne vois pas !
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ajax/recherche.html /ajax_search.php
RewriteRule ^signup$ /signup.php
RewriteRule ^ajax/check_username$ /ajax_check_username.php
RewriteRule ^logout$ /logout.php
RewriteRule ^login$ /login.php
RewriteRule ^lost$ /lost.php
RewriteRule ^confirm$ /confirm.php
RewriteRule ^mail/inbox$ /inbox.php
RewriteRule ^mail/read$ /read.php
RewriteRule ^mail/compose$ /compose.php
RewriteRule ^mail/outbox$ /outbox.php
RewriteRule ^requests$ /requests.php
RewriteRule ^video.html /videos.php
RewriteRule ^categories.html /categories.php
RewriteRule ^photo.html /albums.php
RewriteRule ^membres.html /community.php
RewriteRule ^users$ /users.php
RewriteRule ^resetpassword/(.*) /resetpassword.php?code=$1
RewriteRule ^confirmemail/(.*) /confirmemail.php?code=$1
RewriteRule ^user/(.*)/(.*)/blog/(.*) /memberblog.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/blog /memberblog.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/albums/(.*) /memberalbums.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/albums /memberalbums.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/favorite/photos/(.*) /memberfavphotos.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/favorite/photos /memberfavphotos.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/favorite/videos/(.*) /memberfavvideos.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/favorite/videos /memberfavvideos.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/videos/public/(.*) /memberpubvideos.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/videos/public /memberpubvideos.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/videos/private/(.*) /memberprivideos.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/videos/private /memberprivideos.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/friends/(.*) /memberfriends.php?pid=$1&username=$2&etc=$3
RewriteRule ^user/(.*)/(.*)/friends$ /memberfriends.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/subscribers/(.*) /membersubscribers.php?pid=$1&username=$2&etc=$3
RewriteRule ^user/(.*)/(.*)/subscribers$ /membersubscribers.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/wall /memberwall.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/subscriptions/(.*) /membersubscriptions.php?pid=$1&username=$2&etc=$3
RewriteRule ^user/(.*)/(.*)/subscriptions$ /membersubscriptions.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*)/playlist/(.*) /memberplaylist.php?pid=$1&username=$2&page=$3
RewriteRule ^user/(.*)/(.*)/playlist /memberplaylist.php?pid=$1&username=$2
RewriteRule ^user/(.*)/(.*) /memberprofile.php?pid=$1&username=$2
RewriteRule ^ajax/insert_favorite_photos$ /ajax_insert_favorite_photos.php
RewriteRule ^ajax/insert_my_photos$ /ajax_insert_my_photos.php
RewriteRule ^ajax/insert_playlist_videos$ /ajax_insert_playlist_videos.php
RewriteRule ^ajax/insert_my_videos$ /ajax_insert_my_videos.php
RewriteRule ^ajax/insert_favorite_videos$ /ajax_insert_favorite_videos.php
RewriteRule ^upload.html /upload.php
RewriteRule ^upload/video$ /uploadvideo.php
RewriteRule ^upload/photo$ /uploadphoto.php
RewriteRule ^edit$ /edit.php
RewriteRule ^prefs$ /prefs.php
RewriteRule ^avatar$ /avatar.php
RewriteRule ^album/edit/(.*) /editalbum.php?aid=$1
RewriteRule ^album/addphotos/(.*) /addphotosalbum.php?aid=$1
RewriteRule ^album/delete/(.*) /deletealbum.php?aid=$1
RewriteRule ^album/slideshow/(.*) /slideshow.php?aid=$1
RewriteRule ^album/(.*)/(.*) /viewalbum.php?aid=$1&page=$2
RewriteRule ^ajax/album_cover$ /ajax_album_cover.php
RewriteRule ^photo/(.*)/(.*) /viewphoto.php?pid=$1&page=$2
RewriteRule ^video/(.*)/(.*) /playvideo.php?videoid=$1&page=$2
RewriteRule ^ajax/rate_video$ /ajax_rate_video.php
RewriteRule ^ajax/rate_photo$ /ajax_rate_photo.php
RewriteRule ^ajax/favorite_video$ /ajax_favorite_video.php
RewriteRule ^ajax/favorite_photo$ /ajax_favorite_photo.php
RewriteRule ^ajax/flag_video$ /ajax_flag_video.php
RewriteRule ^ajax/flag_photo$ /ajax_flag_photo.php
RewriteRule ^ajax/share_video$ /ajax_share_video.php
RewriteRule ^ajax/share_photo$ /ajax_share_photo.php
RewriteRule ^ajax/photo_comment$ /ajax_photo_comment.php
RewriteRule ^ajax/photo_pagination$ /ajax_photo_pagination.php
RewriteRule ^ajax/photo_comment_delete$ /ajax_photo_comment_delete.php
RewriteRule ^ajax/video_comment_delete$ /ajax_video_comment_delete.php
RewriteRule ^ajax/wall_comment_delete$ /ajax_wall_comment_delete.php
RewriteRule ^ajax/report_spam$ /ajax_report_spam.php
RewriteRule ^ajax/remove_photo_favorite$ /ajax_remove_photo_favorite.php
RewriteRule ^ajax/upload_progress$ /ajax_upload_progress.php
RewriteRule ^search$ /search.php
RewriteRule ^ajax/related_videos$ /ajax_related_videos.php
RewriteRule ^ajax/video_comment$ /ajax_video_comment.php
RewriteRule ^ajax/video_pagination$ /ajax_video_pagination.php
RewriteRule ^ajax/video_comment_delete$ /ajax_video_comment_delete.php
RewriteRule ^ajax/remove_video_playlist$ /ajax_remove_video_playlist.php
RewriteRule ^ajax/remove_video_favorite$ /ajax_remove_video_favorite.php
RewriteRule ^ajax/wall_comment$ /ajax_wall_comment.php
RewriteRule ^ajax/wall_pagination$ /ajax_wall_pagination.php
RewriteRule ^ajax/subscribe$ /ajax_subscribe.php
RewriteRule ^ajax/unsubscribe$ /ajax_unsubscribe.php
RewriteRule ^ajax/block_user$ /ajax_block_user.php
RewriteRule ^ajax/unblock_user$ /ajax_unblock_user.php
RewriteRule ^ajax/report_user$ /ajax_report_user.php
RewriteRule ^ajax/invite_friend$ /ajax_invite_friend.php
RewriteRule ^ajax/send_message$ /ajax_send_message.php
RewriteRule ^ajax/rate_user$ /ajax_rate_user.php
RewriteRule ^ajax/remove_friend$ /ajax_remove_friend.php
RewriteRule ^ajax/accept_friend$ /ajax_accept_friend.php
RewriteRule ^ajax/reject_friend$ /ajax_reject_friend.php
RewriteRule ^ajax/category_videos$ /ajax_category_videos.php
RewriteRule ^ajax/users$ /ajax_users.php
RewriteRule ^ajax/blog_comment$ /ajax_blog_comment.php
RewriteRule ^ajax/blog_pagination$ /ajax_blog_pagination.php
RewriteRule ^ajax/blog_comment_delete$ /ajax_blog_comment_delete.php
RewriteRule ^blog/add$ /blog_add.php
RewriteRule ^blog/edit/(.*)/(.*) /blog_edit.php?bid=$1&title=$2
RewriteRule ^blog/delete/(.*) /blog_delete.php?bid=$1
RewriteRule ^blog/(.*)/(.*) /viewblog.php?bid=$1&title=$2
RewriteRule ^ajax/blog_preview$ /ajax_blog_preview.php
RewriteRule ^blog.html /blogs.php
RewriteRule ^invite$ /invite.php
RewriteRule ^feedback$ /feedback.php
RewriteRule ^static/faq$ /faq.php
RewriteRule ^static/terms$ /terms.php
RewriteRule ^static/privacy$ /privacy.php
RewriteRule ^static/dmca$ /dmca.php
RewriteRule ^static/_2257$ /2257.php
RewriteRule ^static/webmasters$ /webmasters.php
RewriteRule ^static/advertise$ /advertise.php
RewriteRule ^notices$ /notices.php
RewriteRule ^notice/(.*)/(.*) /viewnotice.php?nid=$1&title=$2
RewriteRule ^ajax/notice_comment$ /ajax_notice_comment.php
RewriteRule ^ajax/notice_pagination$ /ajax_notice_pagination.php
RewriteRule ^ajax/notice_comment_delete$ /ajax_notice_comment_delete.php
RewriteRule ^blocks$ /blocks.php
RewriteRule ^delete$ /delete.php
RewriteRule ^download/video/(.*)/(.*) /downloadvideo.php?VIDEOID=$1&title=$2
</IfModule>
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Merci,