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
0answers
9 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
23 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
26 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
36 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
60 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
30 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
46 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 rebooted....
0
votes
0answers
53 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 ...
-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$ http://yourdomain.com/...
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
469 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
212 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
18 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
45 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
30 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 blog,...
0
votes
0answers
41 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
39 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
74 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
669 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
71 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 off:...
0
votes
1answer
17 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 /blog/...
0
votes
0answers
69 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
19 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
91 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
32 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
186 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
31 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
97 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
24 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
21 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
80 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
22 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
38 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
25 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
59 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
2answers
203 views

404 error on subcategory pages

I have seen some other questions and answers on this but unable to resolve at the moment. I have some categories setup as follows: Blog -- Sub Cat The Permalinks are currently setup with custom ...
3
votes
2answers
1k views

Nginx rules for subdomain multisite install (Bedrock)

I'm trying to move an existing Bedrock based multisite instance to nginx and am having difficulty getting a set of nginx rules to mimic the original .htaccess. Bedrock places the crux of the files in ...
0
votes
0answers
29 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
24 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 ...
0
votes
1answer
292 views

Using WordPress only for the backend, and using AngularJS as a frontend

I'm developing a web application for a friend who needs an online portfolio. As a learning experience, I'm trying to do the front-end with AngularJS and using Wordpress as a backend with the official ...
1
vote
0answers
41 views

From 403 error to 500 internal server error

I'm trying to install wordpress on a shared hosting (1and1), it's been 3 days i'm struggling and i give up, i've installed wordpress many times on other servers with no problem, first time on (1and1) ...
0
votes
0answers
32 views

Use same Wordpress from two subdirectories

I've got a problem and still no solution which fully works. I installed wordpress in "domain.com/wordpress", but I want the same access from another subdirectory e.g. "domain.com/wp". Both ...
0
votes
0answers
19 views

Redirect to index with url that contains specific number

I have some problems with custom Wordpress htaccess file. I want to get simple redirection from all URLs containing numbers after domain, ex: http://example.com/123 -> to http://example.com And, ...
0
votes
1answer
64 views

get_template_directory() returns wrong address on VPS

I'm having the following problem with a Wordpress installation on a VPS server. I'm trying to read from a JSON file but the returned address from get_template_directory() is wrong: $url = ...
1
vote
0answers
63 views

Redirect to localhost after installing Multisite on server

After preparing the site on localhost, I uploaded it on server. Everything works fine by adding both lines to define WP_HOME and WP_SITEURL on wp-config.php and replacing the url site in the database ...