WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]

Closed. This question is off-topic. It is not currently accepting answers. Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question? Closed 6 years ago. Improve this question I have a .cgi file, /data/displayQuery.cgi, … Read more

Remove Parent Category from Child Category URL

I am trying to remove parent category from the child category but each attempt returns a 404 error. Main Category Link (Displays All India Recruitment) Child Category Link (Displays Sub-Category) What am i looking for specifically I want my category hierarchy to remain intact when viewing category in the sidebars. However, I wish to remove … Read more

.htaccess rewrite rule puzzle

Because I need to password protect a subdirectory using cPanel, I modified WordPress’s .htaccess rule as instructed here: https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess This is my current wordpress rewrite block: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./ /index.php [L] </IfModule> # END WordPress Notice particularly … Read more

Map alt domain to specific section of website w/o MU

I have one website on which I want to use multiple domain names. The URL pattern on the existing looks like this: Main domain: – shop.com – shop.com/products – shop.com/about-us – shop.com/pools/ – shop.com/pools/products – shop.com/pools/about-us – shop.com/spas/ – shop.com/spas/products – shop.com/spas/about-us I’d like to use multiple domain so I could use: Main domain: – … Read more

Suppress subdirectory from WordPress Multisite primary URL

I just installed WordPress Multisite (version 4.7.2) in a subdirectory of my primary domain (site1.com/wordpress), and I’ve configured multisite to use subdirectories for all other sites. I understand that WordPress will not allow a change to the primary site’s URL to remove the /wordpress portion of the URL because of how it handles permalinks. But … Read more

hard flush_rewrite_rules() not regenerating .htaccess

I am currently developing a theme where I want to add two permalinks. One is redirecting to the index.php with some custom parameters and values (rule stored in the wp_options table), the other is redirecting to a file in my template which offers the admin-ajax.php functionality (rule stored in .htaccess file). add_action( ‘init’, ‘custom_rewrite_rules’ ); … Read more