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 ...
1
vote
2answers
1k views

Wordpress multisite in subdirectory, not root, and remove base folder from url

I might be misreading but I can't find a solution to the following need: I want to install WordPress in a subfolder of my www directory, let's say www/wp. I then want to add two blogs to the multisite ...
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 ...
1
vote
2answers
571 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
1
vote
1answer
458 views

Which WordPress scripts need to be executable for a fresh installation?

For security reasons I need to block access to scripts that will not be executed on a fresh WordPress installation. Example: /index.php --> needs to be executable /wp-includes/cache.php --> should ...
0
votes
2answers
703 views

Wordpress JSON API restrict to specific domain

I have installed and activated the Wordpress JSON API (http://wordpress.org/plugins/json-api) in my self hosted WP site. Now my site content is open to the world via this API in JSON format. But, I ...
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
79 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
156 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 ...
1
vote
2answers
673 views

Only default permalink is working mod_rewrite enabled

My problem is in my wordpress site only default permalinks is working.. When I change permalinks all pages become not found.. only home page is showing. When I change permalinks to postname .htaccess ...
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 ...
0
votes
1answer
514 views

htaccess 301 Redirect not working from aspx to new WP permalink

I'm fairly experienced with htaccess files and Rewrite/Redirect rules, however, this one has me stumped as to why it's not working. NONE of the following lines (used individually, not together) have ...
0
votes
2answers
1k views

add_rewrite_rule to remove /category/ from permalink

Hi I have many permalinks across my site that looks like this: http://www.mysite.com.com/market/category/slug/slug/slug/ http://www.mysite.com.com/market/category/slug/slug/ and would like to hide ...
1
vote
1answer
644 views

Admin-Ajax.php, SSL, Non-SSL

I have a WordPress site behind a reverse proxy. The site is over http, except the wp-admin area, which is under https. We don't have BasicAuth or anything running on top of the admin area. One of our ...
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] ...
1
vote
1answer
756 views

Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites

I have a custom 404 page, but dont want serve it for every broken asset that may crop up. Instead I want to just serve the Apache 404 as its much faster. I've found the following htaccess rule that ...
0
votes
0answers
26 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 ...
2
votes
2answers
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
3
votes
1answer
482 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
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 ...
1
vote
1answer
1k views

mod_rewrite loop, redirecting http to https on certain section of wordpress blog

I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http: /cart/ /my-account/ /checkout/ As well as these rewrite's worpress has added a rewrite to remove ...
0
votes
1answer
777 views

Working with Reverse Proxies and Multisite Installation

We have a wordpress multi site, the main site has a URL similar to mainsite.com Each of the sub sites have a URL such as subdomain1.mainsite.com, subdomain2.mainsite.com etc Each of the sub sites we ...
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
30 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
638 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
3answers
860 views

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? ...
0
votes
1answer
431 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
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
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
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
958 views

HTTPS to HTTP rewrite rules not working as expected

I'm struggling at getting these rewrite rules to work and was wondering if someone can point out my error(s). The following should redirect a user to HTTPS if they are at the login page or in the ...
1
vote
1answer
8k views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as ...
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
28 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
1answer
680 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
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
1answer
1k views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
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
2answers
652 views

Simple seo-friendly custom $_GET url rewrite with htaccess

I have this url: http://sitename.com/?game=runescape Is it possible to modify the htaccess file or rewrite the url via Wordpress to become like this: http://sitename.com/game/runescape
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
24 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
5k 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 ...