The most common name of the per-directory settings file for the Apache server. WordPress stores the mod_rewrite configuration for "Pretty Permalinks" here. [url-rewriting] should be used for the WordPress rewrite system in general, [mod-rewrite] when you talk specifically about the Apache module.

learn more… | top users | synonyms (1)

3
votes
1answer
50 views

Bypass .htaccess when using download_url

I've got the following .htaccess file in my a custom directory in Uploads called client. RewriteEngine On RewriteCond %{HTTP_REFERER} !(www.)?example.co.uk/client-area* RewriteRule ^.*$ - [R=403,L] ...
0
votes
0answers
33 views

301 Redirect on wp multisite

I have tried to follow instructions see on couple of discussions and none of them seem to work . I have a domain viraleditorial.com and its running multisite network. I have subsite ...
0
votes
1answer
26 views

domain.in/wp-admin give the result to 403 Access to this resource on the server is denied!

I'm new to wordpress. I installed wordpress in my domain. It shows the theme, But When I type http://domain.in/wp-admin It's redirecting to 403 page with message "Access to this resource on the ...
0
votes
0answers
23 views

.htaccess rewrite into Wordpress not hiding URL

Lets say I want to rewrite URLs from one subdirectory to another (my actual use case is a bit more complicated but this is a simpler example): <IfModule mod_rewrite.c> RewriteEngine on ...
0
votes
1answer
64 views

Debug errors for “Destination directory for file streaming does not exist or is not writable”

I'm system administrator, and quite befuddled as I find way to make a debug to know why error message you receive one of my users when trying to update their plugins. Server Apache 2.4 PHP 5.5.32 ...
0
votes
1answer
33 views

Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter

According to the example on Adding your own .htaccess contents via WordPress it's possible to extend the .htaccess file via theme/plugin. for example: <?php function my_htaccess_contents( $rules ) ...
1
vote
0answers
642 views

Empty permalinks settings in .htaccess

Permalinks not working other than set to "Default'. I want to change it to /%postname%.html, and default .htaccess is as follows: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
0answers
8 views

Re-Write Rules - Target everything other than pages

Is it possible to target all wordpress content except pages? I would like my site to be /area except the pages that i make including the homepage?
0
votes
0answers
21 views

error happens when subdomain redirected to subdirectory

I have a subdomain as subdomain.maindomain.com. I forcibly redirected this subdomain to sub directory(maindomain.com/subdomain) by using some code in .htaccess. My site works well, but I found many ...
0
votes
0answers
23 views

More than one multisites in localhost

I setup two wordpress multisites in my localhost. When I configured the second one then first multisite broken. When I checked the .htaccess file the configuration for second one automatically updated ...
0
votes
2answers
32 views

What is the most efficient (ie. less server intensive) way for 301 redirects?

I would like to know if there is any difference, in terms of efficiency (i.e. less use of server resources) in performing 301 redirects using .htaccess or using the wp_safe_redirect feature of ...
0
votes
1answer
34 views

Centos 7.2 wordpress on going to /admin shows Forbidden You don't have permission to access /wordpress/wp-admin/ on this server

I have Centos 7.2 on our production server. When I try to go to admin on http://patrickheide.com/wordpress/admin or http://patrickheide.com/wordpress/wp-admin It shows the error "Forbidden ...
0
votes
0answers
32 views

Preferred domain (www vs non-www) setting mismatched in Wordpress & Google Webmaster Tools

Looking for some advice on what appears to be a fairly ambiguous topic. I have also asked this question on Stackexchange, but with no response, so I'm hoping to find some more WordPress-specific ...
0
votes
0answers
27 views

How do I generate 301 redirect?

I am working on the function which is supposed to add 301 redirect when the permalink gets changed (for example, when we change categories structure). The idea behind is to keep the old URL in a meta ...
1
vote
0answers
22 views

ModSecurity && Admin Ajax: Server locking up

My server is throwing this error: ModSecurity: Error reading request body: Software caused connection abort [uri "/wp/wp-admin/admin-ajax.php"] Followed by this error until the server gets ...
0
votes
0answers
37 views

Multisite with subfolders, and multiple other domains on the same host htaccess

my problem is mainly with htaccess i've maindomain which is running latest version of wordpress and is a multisite with subfolders so my installation is as follows 1st domain: www.maindomain.com ...
0
votes
0answers
25 views

How to ignore further page child path?

We are desperately looking for a way to create a page that accepts parameters, just like: example.com/mypage/?key=value but... without the ordinary query string. Instead, we wish to use the ...
0
votes
0answers
31 views

Wordpress redirect from one directory to another but exclude wp-admin and wp-login.php

I would like to redirect an entire WordPress sites (posts, pages, categories etc) from one sub directory (blog) to another (news) but excluding /wp-admin/ directory and the /wp-login.php file. I have ...
0
votes
1answer
39 views

How can I serve a text file at a custom URL

I have a WordPress site installed at the root of the webserver: / I want to serve a text file from here: /.hiddendir/secondlevel/textfile I've created this file and directory on the server at ...
-1
votes
2answers
1k views

Change Login URL Without Plugin

I want to change the login url of my Wordpress install away from /wp-admin.php I am aiming to do so and am looking at changing the .htaccess file to add in: RewriteRule ^login$ ...
0
votes
2answers
6k views

How to: 301 Redirect /category/ to /customname/

I've changed our "category base" in WP settings from the default "category" to "customname". Now there are 404 errors to links containing the old category slug eg. mysite.com/category/names What do ...
0
votes
1answer
447 views

404 not working on main site on multisite

I currently have two sites(main site and sub site) created with multisite function. Recently, i noticed that the 404 error page seems not to work on main site. No matter what error url i type to test ...
0
votes
1answer
1k views

removing index.php IIS 7.5 webconfig

I would like to remove index.php from my permalink. I am using Codeigniter website. I have passed the requirements to use pretty permalink: -PHP Version 5.4.27 Codeigniter -IIS 7.5 -URL Rewrite 2.0 ...
0
votes
1answer
22 views

Redirecting a POST to a php script

This is an expansion on the second answer to the question asked here. I have been trying to redirect a post request from my_website/test to wp-content/themes/my_theme/test.php but I am getting a 404 ...
0
votes
2answers
180 views

Error:406 not acceptable

I have a wodpress site, and I have submitted it to google webmaster tools. When I search on google by my site name, the results come, and on clicking the searched result, I can open the website on my ...
1
vote
2answers
1k views

WordPress keeps writing rewrite rules to .htaccess

WordPress keeps writing rewrite rules into .htaccess again and again till it causes an error and causes server to return 500 Internal server error... i.e. My .htaccess is a series of # BEGIN ...
0
votes
0answers
17 views

Limit access to wp-admin but still be able to log in from different locations?

I have problems with some cms attacks, and I uploaded the following .htaccess to wp-admin # Block access to wp-admin. order deny,allow allow from x.x.x.x #studio ip deny from all Is there a way ...
0
votes
1answer
41 views

Multiple wordpress installations on same server

I have three different wordpress sites on my server located like this: /www -> main site /www/site2/ /www/site3/ The main site is working but the site2 and site3, which are the wordpress sites ...
1
vote
0answers
27 views

WordPress Multisite - Multiple subfolders for blogs

I created a Network in blog.animals.com, the Network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each ...
0
votes
0answers
33 views

Can't access wp-content url after domain mapping

I developed a plugin which is having some ajax actions to fetch data. Plugin works fine in multisite installation but not in domain-mapped sites(wpmudev's). I can access .css, image files and even ...
0
votes
1answer
29 views

LetsEncrypt WordPress on the Raspberry Pi - Nice url's give 404 with https, http works

I setup WordPress on my Raspberry Pi and used LetsEncrypt to secure it. The HTTPS links will work with Post ID permalinks. They return a 404 when I change the permalinks to anything else. Here is my ...
0
votes
0answers
63 views

Post type permalink as subdomain rewrite rule

I'm trying to use custom post type slug on permalink before site URL (as sub domain) so the permalink most look like: http://post-type-slug.example.com I use a modified class from Subdomains plugin ...
1
vote
2answers
626 views

Remove subfolders from URL

I am having a tough time removing the subfolders from the URL in my WordPress site. Currently, the URL format is: www.mysite.com/subfolder/index.php/category/postname I would like to remove both the ...
0
votes
0answers
57 views

Blog Posts and Woocommerce Pages Return 404

I have a WordPress site on localhost, the blog post pages and Woocommerce products return 404 when I have friendly URLs turned on: http://localhost:8888/site.co/example-post/ But when I have it ...
0
votes
1answer
15 views

Folder wordpress page redirect

I have my wordpress on a folder, lets say /blog. I would like to be albe to redirect virtualy the users so visit some specific urls to a page. Let's say: I have my terms page that so it is on ...
0
votes
0answers
58 views

Exclude a WordPress folder from the rewriting rules?

My teammate and me would like to work together on the same project. I am the frontend integrator and my friend is the backend developer. We would like to work in this way (if possible) : 1) I create ...
0
votes
0answers
15 views

htaccess rewrite rules for http and https access

I want to be able to test (is https on and is the request for an http file) then serve an https file. This is so that the website can be access from https or http.
0
votes
1answer
60 views

Wordpress subfolders htaccess bypassing the root htaccess RewriteRule

I have hosted many domains at my GoDaddy hosting. There 'example.com' is my primary domain and its WordPress files are in folder 'web_example' situated at root. There is a .htaccess file at root to ...
0
votes
0answers
29 views

Rewrite URL query string for all pages

I need to pass query string http://example.com/anypage?query=123 to look like this: http://example.com/anypage/123 and it should work on any page: ...com/anotherpage/123 I am looking for the ...
0
votes
1answer
114 views

On IIS, stop Wordpress from resaving my web.config file when I enter the Permalinks config page

I have a Wordpress website installed in IIS and it is working fine. On a subfolder I have and ASP.NET application which also works allright. Wordpress URL rewriting causes a series of problems on the ...
10
votes
3answers
9k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
0
votes
0answers
22 views

flush_rewrite_rules with wp_cron

I'm trying to build myself a plugin for remote viewing data of all my WordPress installations in one overview. Therefore I'm generating a list using xmlrpc to remote connect to all the WordPress ...
0
votes
2answers
71 views

disable Wordpress 404 for one specific page/folder to receive actual php errors

I have a Wordpress based site with an additional custom PHP application with files in it's own folders - "staff", "volunteers" etc. We have mod-rewrite in .htaccess file so we can use permalinks # ...
0
votes
1answer
21 views

Multisite setup help - plain domain/subsite always redirects to domain with subdir multisite

I set up a path-based wp multisite using subdirs for each site. It all works well except if the subsite is accessed without www. For example - //mainsite/subsite always redirects to //mainsite" ...
-1
votes
1answer
15 views

Woocommerce 404 after chang default language

After change default language in Woocommerce from Dutch to English I get 404 errors. I also have installed latest version of WPML. 3 Languages are active: EN - NL - DE. When I edit a link to open an ...
0
votes
0answers
56 views

Force non-ssl on WordPress RSS feeds in htaccess, using cloudflare

I have a site behind cloudflare's free SSL service. However I can no longer validate my RSS feeds at https://validator.w3.org because i get Server returned [Errno 1] _ssl.c:504: error:14077438:SSL ...
0
votes
1answer
20 views

Redirect Loop in Regex Moving to HTTPS

First, this site has been running on HTTPS for over 6 months with a green address bar and all. It was only recently I was reading on Bing Webmaster Tools that redirect loops were a problem on this ...
1
vote
0answers
37 views

Password protect any file in WordPress

I have found that password protection with .htaccess & .htpasswd files is the only way to protect any WordPress file. I wanted to make few of my media files accessible by specific username and ...
0
votes
0answers
22 views

Redirecting archive page (blog) to normal page

While trying to redirect an archive page to a normal page using .htaccess I can't figure out how to make it work. I've tried using those three lines: Redirect 301 /blog$ /mvo-database RedirectMatch ...
0
votes
2answers
48 views

Why will Pretty URLs not Work?

I have many security plugins setup. Could someone tell me what changes I need to make to my .htaccess file (while keeping as much of my current rule set as possible) to make pretty URLs work? # BEGIN ...