Permalink custom structure: how to get rid of path to blog string?
-
(Before I finished this post, I found a potential solution which I note at the end but am not confident I have understood what the options are.)
I was using the following structure: https://example.com/site_wc/blog_wp1/archives/123.
I am trying to change the permalink structure to /%category%/%postname%.html with a string in front of that, “Tech/151-200”, so that the end result is https://example.com/Tech/151-200/151_metadata/filename.html where “151_metadata” is the category.
I started with the custom structure as “/%category%/%postname%.html” and used the Category base to specify “Tech/151-200” but that failed.
Then I tried “/Tech/151-200/%category%/%postname%.html”. That produced https://example.com/site_wc/blog_wp1/Tech/151-200/151_metadata/filename.html where “site_wc” is the parent folder for the blog’s folder, “blog_wp1” (i.e., the path from public_html to the blog folder).
How do I get rid of the unwanted part, “/site_wc/blog_wp1” (without moving the blog folder itself)?
The Category base works when I specify only <Q>Tech</Q> but with the unwanted string “/site_wc/blog_wp1”.
The AskApache RewriteRules Viewer reports permalink_structure is “/Tech/151-200/%category%/%postname%.html”; front is “/Tech/151-200/”; and mod_rewrite_rules includes “RewriteBase /site_wc/blog_wp1/”.
Is the solution the one offered in https://www.ads-software.com/support/topic/246738?replies=12#post-1329912; namely, in .htaccess , change “RewriteBase /”
to
“RewriteBase /blog/” and “/index.php” to “index.php”?Any suggestions?
- The topic ‘Permalink custom structure: how to get rid of path to blog string?’ is closed to new replies.