Htaccess Rewrite and Categories problem
-
Been fighting this one since Friday. Figured it’s time to ask for help.
I’m running a WP install in the root directory in order to make use of the multisite capabilities and have domain mapping running.
I’m also running Pligg in a sub-directory but a rewrite forces Pligg to be the actual site frontend (I’m going somewhere with this idea down the road further).
The site runs fine, I’m running Pretty Permalinks on the WordPress, but now I’ve run into a few problems with categories in WP. As far as I can tell everything else works.
This is the category link from within a post https://wildwellent.com/blog/index.php/store/
! Doesn’t work!This does work https://wildwellent.com/index.php?category_name=store.
Here’s the whole htaccess file from root!
# Needed before any rewriting RewriteEngine On ### Built using the .htaccess 301 Redirect Generator from Web Site Advantage ### https://seo-website-designer.com/HtAccess-301-Redirect-Generator ### Place after 'RewriteEngine On' and before any CMS specific rewrite rules ## 301 Redirects # 301 Redirect 1 RewriteCond %{QUERY_STRING} ^p=([0-9]*)$ RewriteRule ^$ index.php/$1 [L] RewriteRule ^$ /pligg/ [R=301,NE,NC,L] RewriteRule ^index\.html$ /pligg/ [R=301,NE,NC,L] RewriteCond %{QUERY_STRING} ^p=([0-9]*)$ RewriteRule ^$ index.php/$1 [L] RewriteRule /pligg/sitemapindex.xml /pligg/module.php?module=xml_sitemaps_show_sitemap [L] RewriteRule /pligg/sitemap-([0-9a-z]+).xml /pligg/module.php?module=xml_sitemaps_show_sitemap&i=$1 [L] ### Built using the .htaccess 301 Redirect Generator from Web Site Advantage ### https://seo-website-designer.com/HtAccess-301-Redirect-Generator ### Place after 'RewriteEngine On' and before any CMS specific rewrite rules # BEGIN WordPress RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress
Any ideas??
- The topic ‘Htaccess Rewrite and Categories problem’ is closed to new replies.