wordpress rewrite urls and subfolder forums
-
Hello,
I have a small problem with my wordpress and my forum.
Every time i activate the friendly URLs I need to use the htaccess file
to activate the rewrite rules, till now, everything was ok.The problem is, I have the wordpress on the root url (/) and the forum
on sub folder (/mi/) so every time I try access the forum, wordpress take over the URL and display 404Error page.my forum have it’s own htaccess file, but it seems to be useless since
wordpress -on the root- have one too.can anyone please tell he how to solve this and have friendly URLs with
wordpress and the forum?htaccess file from the forum:
RewriteEngine On RewriteRule ^mem_order_posts&count=([0-9]+) index.php?page=member_list&index=1&order=1&order_type=DESC&count=$1 [L] RewriteRule ^mem_order_visit&count=([0-9]+) index.php?page=member_list&index=1&order=3&order_type=DESC&count=$1 [L] RewriteRule ^mem_order_reg&count=([0-9]+) index.php?page=member_list&index=1&order=2&order_type=DESC&count=$1 [L] RewriteRule ^mem_order_posts index.php?page=member_list&index=1&order=1&order_type=DESC [L] RewriteRule ^mem_order_visit index.php?page=member_list&index=1&order=3&order_type=DESC [L] RewriteRule ^mem_order_reg index.php?page=member_list&index=1&order=2&order_type=DESC [L] RewriteRule ^member(.*) index.php?page=member_list&index=1&show=1&count=$1 [L] RewriteRule ^archive.html index.php?page=archive [L] RewriteRule ^search.html index.php?page=search&index=1 [L] RewriteRule ^portal.html(.*) index.php?page=portal&count=$1 [L] RewriteRule ^rules.html index.php?page=misc&rules=1&show=1 [L] RewriteRule ^static.html index.php?page=static&index=1 [L] RewriteRule ^team.html index.php?page=team&show=1 [L] RewriteRule ^today_subjects(.*) index.php?page=latest&today=1&count=$1 [L] RewriteRule ^calendar.html index.php?page=calendar&show=1 [L] RewriteRule ^special_subject.html index.php?page=special_subject&index=1 [L] RewriteRule ^sitemap.xml index.php?page=sitemap&subject=1 RewriteRule ^sitemap.htm(.*) index.php?page=sitemap&sitemaps=1&count=$1 [L] RewriteRule ^t([0-9]+).html index.php?page=topic&show=1&id=$1 [L] RewriteRule ^t([0-9]+)&password=(.*)&count=([0-9]+) index.php?page=topic&show=1&id=$1&password=$2&count=$3 [L] RewriteRule ^t([0-9]+)&count=([0-9]+) index.php?page=topic&show=1&id=$1&count=$2 [L] RewriteRule ^t([0-9]+) index.php?page=topic&show=1&id=$1 [L] RewriteRule ^f([0-9]+).html index.php?page=forum&show=1&id=$1 [L] RewriteRule ^f([0-9]+)&password=(.*)&count=([0-9]+) index.php?page=forum&show=1&id=$1&password=$2&count=$3 [L] RewriteRule ^f([0-9]+)&count=([0-9]+) index.php?page=forum&show=1&id=$1&count=$2 [L] RewriteRule ^f([0-9]+) index.php?page=forum&show=1&id=$1 [L] RewriteRule ^u([0-9]+)&count=([0-9]+) index.php?page=profile&show=1&id=$1&count=$2 [L] RewriteRule ^u([0-9]+).html index.php?page=profile&show=1&id=$1 [L] RewriteRule ^u([0-9]+) index.php?page=profile&show=1&id=$1 [L] RewriteRule ^p([0-9]+).html index.php?page=print&show=1&id=$1 [L] RewriteRule ^p([0-9]+) index.php?page=print&show=1&id=$1 [L] RewriteRule ^Af([0-9]+).html index.php?page=forum_archive&show=1&id=$1 [L] RewriteRule ^Af([0-9]+) index.php?page=forum_archive&show=1&id=$1 [L] RewriteRule ^At([0-9]+).html index.php?page=topic_archive&show=1&id=$1 [L] RewriteRule ^At([0-9]+) index.php?page=topic_archive&show=1&id=$1 [L] RewriteRule ^name-(.*).html index.php?page=profile&show=1&username=$1 [L] RewriteRule ^name-(.*) index.php?page=profile&show=1&username=$1 [L] RewriteRule ^mem_order_letters(.*) index.php?page=member_list&index=1&sort=username&letr=$1 [L] <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript </ifmodule> <filesMatch ".(ico|pdf|flv)$"> Header set Cache-Control "max-age=29030400, public" </filesMatch> <filesMatch ".(jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=604800, public" </filesMatch> <filesMatch ".(xml|txt|css|js)$"> Header set Cache-Control "max-age=172800, proxy-revalidate" </filesMatch> <filesMatch ".(html|htm|php)$"> Header set Cache-Control "max-age=60, private, proxy-revalidate" </filesMatch>
and i disabled htaccess file of wordpress
WordPress URL: https://www.miuipalestine.net
Forums URL: https://www.miuipalestine.net/miThanks a lot ??
- The topic ‘wordpress rewrite urls and subfolder forums’ is closed to new replies.