Info
- 4 posts
- 2 voices
- Started 3 years ago by Anonymous
- Latest reply from chrishajer
- This topic is not resolved
Rewrite url Problem
-
- Posted 3 years ago #
Hi,
i've a problem with my first bbpress installation.
I've install bbpress on my subfolder /forum3/, forum is ok
but i've problem with rewrite url.
I 've try to insert Options +MultiViews in htaccess file, but i've Error 500, i've try to create htaccess file with /bb-admin/rewrite-rules.php but url do error 404.
This my htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum3/
RewriteRule ^forum3/([^/]+)/page/([0-9]+)/?$ /forum3/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum3/([^/]+)/?$ /forum3/forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forum3/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /forum3/topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forum3/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /forum3/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /forum3/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forum3/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forum3/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forum3/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /forum3/profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /forum3/profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forum3/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /forum3/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /forum3/rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /forum3/rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /forum3/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /forum3/rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /forum3/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /forum3/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /forum3/rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /forum3/rss.php?view=$1 [L,QSA]
</IfModule>It's ok?
What is the problem?
Thank
Marco
-
- Posted 3 years ago #
The syntax of that file is OK (I tried it on my forum), so if it is giving you a 500 error, your host does not allow the directives you're trying to use in .htaccess. Check with your host to see if .htaccess is allowed and what directives are allowed in it.
If the 500 error was with
Options +MultiViewsthen the host just does not allow that. If this .htaccess file with all the rules does not work, please explain what happens or post a link to your forum.Also, be sure you save the file as .htaccess beginning with a period (hidden file on *nix.)
-
- Posted 3 years ago #
-
- Posted 3 years ago #
To determine if it's your host configuration, do this. Log in to your forum as keymaster, go to Settings > General, and under "Pretty Permalink Type", choose the first option None.
http://www.oltrelebarriere.net/forum3/bb-admin/options-general.php
Then try your forum again. I bet it will work which points to a problem with your host and the rewrite rules you're trying to use in .htaccess.
-
You must log in to post.