Info
- 4 posts
- 3 voices
- Started 5 years ago by Daniel8802
- Latest reply from itissue
- This topic is not resolved
Permalinks
-
- Posted 5 years ago #
Hi guys -
What is the section of code that I need to past into my .htaccess if my webserver cannot support +multiviews? I tried saving the whole file as .htaccess, but it didn't work. Any ideas would be great, thanks!
-
- Posted 5 years ago #
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /forum/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([0-9]+)$ /forum/forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /forum/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([0-9]+)$ /forum/topic.php?id=$1 [L,QSA]
RewriteRule ^tags/(.+)/page/([0-9]+)$ /forum/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/(.+)/?$ /forum/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /forum/tags.php [L,QSA]
RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /forum/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)$ /forum/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /forum/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([0-9]+)$ /forum/profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /forum/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /forum/view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /forum/rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /forum/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /forum/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /forum/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /forum/rss.php?profile=$1 [L,QSA]
</ifmodule> -
- Posted 5 years ago #
The above text should all be saved as a file called .htaccess in your forum root.
In the above example, the subfolder name is "forum" - you will need to edit that text is your bbPress install is in another location. Here for example it's in a subfolder called "forums". Change "forum" to your folder name and you should be good to go.
Good luck.
-
- Posted 4 years ago #
I'm using the private messaging plugin but now I have to add code to my .htaccess page. I'm stumped as to what to write because I don't understand .htaccess. Could anyone translate this for me?
http://tapestry.suefeng.com/message?id=1
http://tapestry.suefeng.com/pm.php?new=1The first link's number changes for different messages. For example, the first message will have /message?id=1 and the second one will have /message?id=2.
The second link actually works fine...i guess it doesn't need to be fixed but it'd be great if it could look differently.
Thanks for your time,
Sue -
You must log in to post.