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)

0
votes
2answers
34 views

Redirect all pages except one to homepage via .htaccess

I just trasformed an old website to a one-page Wordpress. The old website had several URLS, now there's ony 1: the homepage. Plus another page with privacy policy. Hence I would like to redirect all ...
0
votes
0answers
20 views

Removing subfolder vs htaccess without causing 404 pages

First of all just want to say spent the last 5 hours reading other stackxchange links and Google before giving in to ask. I'm using a plugin JS Support Ticket that adds a slug to the URL in this ...
0
votes
0answers
13 views

How to redirect a sub directory except for the landing page?

I need to redirect all my posts under the subdirectory 'plays' to the home / directory except for the landing page so if you go to mydomain.com/plays/hello you will be redirected to mydomain.com/hello ...
0
votes
0answers
21 views

WordPress 301 not working (maybe related to SSL?) [on hold]

I'm having a very strange issue in a new website I am working on. This is the first time I had to work with SSL in a WordPress environment. Basically, my setup involves the free SSL offered with ...
0
votes
0answers
24 views

How to allow specific URL

I need a little bit help on WordPress URL. In Wordpress Backend, I have One page and the page slug is: listing-detail When I try below URL into the browser it's working as per my expectation. ...
4
votes
0answers
77 views

Improve wordpress security by hiding non public resources

I'm new from wordpress and i want improve security of wordpress multisite by hiding non public resources, eg. wp-admin, wp-config etc. My setting seem to work, but i don't know if this setting can ...
0
votes
0answers
155 views

Pretty Permalinks don't work since 4.5 upgrade

Prior to two days ago, the site was working perfectly fine. Now after the upgrade to 4.5, all sub-pages (Pages, Tags, Categories etc) are returning 404 errors with the same theme as my site. If I set ...
0
votes
0answers
14 views

How can add multiple query string URL in Wordpress?

I have site example.com/search-results/keyword/ I have added one rule in htaccess file as ^/search-resuls/(.*) index.php?pagename=search-results&keyword=$1 But it gives me Page not found. Any ...
0
votes
0answers
14 views

How gzip compression still happening?

I am using Ubuntu 14.04.4 LTS,Apache/2.4.7 and PHP 5.5.9. I installed Wordpress 4.4.2 in my machine. When I run my site in localhost, I noticed that js/css are compressed in gzip format. I didn't ...
3
votes
1answer
49 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
25 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
23 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
20 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
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
19 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
0answers
20 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
2answers
31 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
27 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
27 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
26 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
16 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
28 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
23 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
23 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 ...
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
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
24 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
49 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
26 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
44 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 ...
0
votes
0answers
43 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
12 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
40 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
85 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 ...
0
votes
0answers
17 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 ...
-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
1answer
18 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" ...
0
votes
0answers
40 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
2answers
61 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
18 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
36 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
19 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
44 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 ...
0
votes
0answers
27 views

Changing permalink structure on multisite

I want to change the permalink structure on a couple of the sites I host on my wordpress multisite install from Day and Name and Post name. In order to ensure that previous links are redirected I ...
0
votes
0answers
20 views

One WP Database outside localhost and two connections

I would like to ask for help with this problem. I have two places where I have the same WP. 1) Test site - own domain, hosting and DB - here is stored database, so siteurl is here, example: test.com ...