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)

1
vote
1answer
717 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 ...
-1
votes
1answer
37 views

How to Redirect Url to homepage?

For seo based this 4 url display 404 page. Now we wants to redirect on homepage but my htaccess rule not working. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{...
0
votes
3answers
994 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/? forums%{...
0
votes
1answer
30 views

How to rewrite a folder in WordPress?

I'm using "The7" theme and don't want to use the standard Portfolio archive template. I have used the default template to create a page that looks great, let's call it /our-portfolio/. Currently the ...
1
vote
2answers
46 views

.htaccess 'down for maitenance' and WordPress

OK so - we need a solid .htaccess rule to make the following happen: Deny ALL from visiting the site (they are taken to 'down for maintenance' page, but ALLOW for me and our developer. Yes, there ...
0
votes
0answers
23 views

Pagination Duplicate content issue (.htaccess help)

I want to get rid of /page1.html from all the pages, as xyz.com/cat1/page1.html and xyz.com/cat1/ will lead to same result. I have tried this in my .htaccess: RewriteEngine On RewriteRule (.*)/...
0
votes
0answers
19 views

SSL and WordPress Infinite Loop

I have the following htaccess directives that results to an infinite loop in Firefox (Windows) and IE (Windows) and possibly other browsers (iOS safari). On Chrome (Windows/Android) it works fine: # ...
0
votes
0answers
39 views

Internal server error after creating new Multisite

I'm trying to create a local Multisite. I've created the site and updated the wp-config and .htaccess files, and set rewrite to allow all. When I go to the subdirectory (it would not let me create ...
0
votes
2answers
479 views

How to protect htaccess so it can't be overwritten?

I'm having a problem where Wordpress is periodically and randomly destroying the .htaccess file and setting it to zero bytes. When it does this, the site of course breaks until permalinks are ...
0
votes
1answer
20 views

How to proxy local WP uploads folder to live site

Stack: MAMP PRO on OSX 10.11.5 (El Cap) Scenario: I'm developing a site locally, and there is already a live version of the site online. Rather than download all 4gb of the uploads folder, I'd ...
1
vote
1answer
19 views

.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 ...
0
votes
0answers
59 views

wp-admin/post.php access denied

When I publish or update posts with media (eg: image ) it results to following message. Access Denied You don't have permission to access "http://example.com/wp-admin/post.php" on this server....
0
votes
0answers
20 views

Configure .htaccess to access at two WP installation

I have a server where I have this situation: root folder -> installation files of WP and relative .htaccess -- home folder -> another WP installation ad relative files and .htaccess Below the ...
11
votes
6answers
10k views

How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?

How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html? I read and it seems its not possible when using permalinks? The objective is to reduce the server ...
0
votes
0answers
15 views

add_rewrite_rule to fix fastcgi issue with basic AUTH

The issue is that $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are not populated if PHP is running CGI/FastCGI as the server API. I've read there is a possible fix with this through htaccess ...
2
votes
1answer
288 views

Static raw HTML page

On the server there is a static HTML page example.html in my root folder of the WordPress install. Now when a user types www.example.com/example.html I want WordPress to be smart and bypass all normal ...
9
votes
2answers
194 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
13 views

add_rewrite_rule redirection okay, but not detecting add_rewrite_tag as query_var

I'm having an odd issue with add_rewrite_rule and add_rewrite_tag I basically am creating a page so that if you go to:- http://domain.com/enquire-now/test/ It will go the equivalent of:- http://...
0
votes
0answers
16 views

Show root pages without changing url of the sub folder htaccess rules

URL 1: abc.com/shops/Rebeka/ URL 2: abc.com/Rebeka/ Here for example Rebeka is a post name that exist on root (URL 2) but it is missing under /shops/ folder. Here I want to keep both of the urls ...
0
votes
0answers
26 views

htaccess set public pages and then allow from specific referer

I've done a lot of searching already and I have read the full documentation on .htaccess. However, I don't seem to get some restriction rules to work for my WordPress website. I'll explain the ...
1
vote
3answers
576 views

Changing RSS feed URL structure

I am in the process of creating a wordpress website, and I just have one issue left - RSS feeds. Currently, the website has a .htaccess file blocking access to /category/* pages. It was part of a ...
0
votes
0answers
16 views

How to enable htaccess rules for MultiSite mapped subdomains?

Running a multisite network, setup with subdomains. Hosted on a Pagely VPS. Using WordPress MU Domain Mapping for all "live" sites in our network. Attempting to better page speed scores, and am ...
0
votes
1answer
23 views

redirecting an entire WP site from one top level domain to another

I think I know the best way to proceed doing this but just want to get some reassuring thumbs up before going ahead. Basically I want to move a .co.uk domain to the same name but .com The site ...
0
votes
1answer
26 views

Rewrite /keyword1+keyword2.html to search page | .htaccess

I am facing trouble redirecting the keywords to search page in a wordpress 4.4 setup. What I am trying achieve is to rewrite/redirect www.site.com/**search+keyword.html*** to www.site.com/**?s=...
0
votes
1answer
71 views

Multisite on localhost using xampp

I'm having some trouble getting Multisite to work on my localhost using xampp. I have the main site in a subfolder so the path would be http://localhost/my_site/. I'm getting two different errors, ...
0
votes
2answers
20 views

Local PC cache stays filled with old WordPress Site data

I am developing a new WP site. My client complains that he see old site data like links that refer to old category names. On my PC and other I have no problems with this. On server side there is no ...
0
votes
0answers
33 views

Accessible Subcategory URL's pages without using .php hack

I'm attempting to setup a custom URL structure within posts that makes all parents and sub child's accessible, but all attempts have failed with various errors. My category structure looks something ...
0
votes
0answers
23 views

Year archive permalink structure redirecting to home

I'm having issues with the permalink structure of my yearly archives. http://testsite.com/2016/04/ works, but http://testsite.com/2016/ redirects to http://testsite.com My blog base page is: http://...
0
votes
0answers
39 views

Cannot access network admin and sub-site pages (multi-site)

I have copies the all files and folder from live site and copied on my localhost. My main site is working properly but when accessing the sub-site it's get page not found error and when accessing the ...
0
votes
1answer
41 views

What causes /pages/ to appear in URI, and how to remove it?

I have a WordPress site I am working on, in which /pages/ appears in the URI for all Pages. For example, www.site.com/pages/contact-us/ I am stumped as to why this is occurring, it doesn't occur on ...
2
votes
0answers
14 views

WordPress trims off the forward slash when import

I have an XML file with some posts to import to WordPress But, when I import, it seems that WordPress takes off the forward slash from the permalink, so instead of showing the address like this: ...
0
votes
0answers
81 views

Server certificate doesn't match server name - file name error

I'm currently running my site with XAMPP. I used to access my site with the file path name localhost/wordpress. This works however it only displays my content with no formatting I've given it. The ...
1
vote
1answer
49 views

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) ...
2
votes
2answers
4k views

Domain redirect in Wordpress multisite

I have two domains www.domain1.com and www.domain2.com, both pointing to the same host. What I want to do is redirect www.domain2.com to www.domain1.com/domain2. I got this code for a .htaccess from ...
0
votes
2answers
361 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
22 views

Targeting .htaccess file with file_put_contents

I have a htaccess file and the path to access it is: wordpress/.htaccess When I use: file_put_contents('wordpress/.htaccess', implode('', $data)); I get the error "Failed to open stream"... How ...
3
votes
1answer
66 views

.htaccess file redirecting to parent directory

I am creating separate WordPress installations in several subdirectories of one domain. At first I was getting a 500 Server Internal error.. so I created the .htaccess file and uploaded it to each ...
2
votes
0answers
28 views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
0
votes
0answers
45 views

Trouble with Permalinks - Mod_Rewrite on, htaccess accessable

I'm having issues with custom permalinks, I've gone through weeks of trouble shooting to no avail. Today I've confirmed that: htaccess is being read, tested with just writing "test" at the top of ...
0
votes
0answers
28 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
16 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
29 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. xyz....
0
votes
0answers
359 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
20 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
18 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
63 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
42 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 monarch....
0
votes
1answer
35 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
26 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
95 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 ...