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

Redirect every http request to https but with some rules

I am hosting a Website which have ssl. Then i want to create a sub domain like if i have a site cheersbin.com so my subdomain is rb.cheersbin.com. Main site have ssl but the sub site doesn't. I placed ...
-1
votes
1answer
24 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
1answer
23 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 ...
0
votes
0answers
17 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 (.*)/...
1
vote
2answers
45 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
15 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
30 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 ...
-1
votes
0answers
19 views

Error establishing a database connection using Azure

We're using Azure to host our website, last week we accidently hit our maximum number of connections so Azure stopped our website. But today, Azure has re-enabled out website but now it isn't working. ...
0
votes
1answer
35 views

Fetching header from the root folder from server

I placed a wordpress website in a subfolder in server. But I am getting a very weird thing after installation. The website's home page is working fine. But inner pages are getting the header of root ...
0
votes
1answer
6 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
17 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
24 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 ...
0
votes
0answers
24 views

Reverse Proxy For Wordpress [closed]

Hey Guys SO iv been trying to setup a reverse proxy setup of my wordpress website by following this tutorial I managed to set everything as per the tutorial instructions even made changes to the code(...
0
votes
0answers
11 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 ...
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
21 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 ...
0
votes
0answers
13 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
20 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
23 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
48 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
32 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
22 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
28 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 ...
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
1answer
38 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 ...
1
vote
1answer
32 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) ...
0
votes
0answers
18 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
50 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
27 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
36 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
2answers
181 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
25 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
28 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....
9
votes
2answers
183 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
302 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
57 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
37 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
31 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
25 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
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
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
0answers
22 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
35 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 ...