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
15 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
60 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
114 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
22 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
21 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
56 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
71 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
20 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
37 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
22 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
48 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
28 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
22 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
183 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
40 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
26 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
18 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
54 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
55 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 ...
1
vote
0answers
11 views

WordPress: how to change URL for individual MultiSites?

Currently we have a MultiSite setup for our main website, and the URL's appear as follows: http://sub.domain.com/site-a (Site A) http://sub.domain.com/site-b (Site B) Site A is OK as is. But we ...
1
vote
1answer
37 views

Multisite Create Site not working

I've followed multiple Questions, but can't seem be to be able to find a solution. I'm looking to be able to have a local install multisite, (XAMPP), and succeeded in making multisite available. ...
1
vote
2answers
100 views

Permalinks: Page Not Found

When I open the newly created page in WordPress I get page not found but when I reset the permalinks to none http://localhost/?page_id=6 opens normally . Even with this permalink it works : ...
0
votes
0answers
48 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 ...
0
votes
0answers
48 views

Dynamic page loads in browser, returns 404 to curl and GWT

I have created a dynamic page that displays content based on the US state name taken from the URL. I created the page in WP with a title of "CDL Manual PDF" and it has the URL ...
0
votes
0answers
40 views

RewriteRule to hide Wordpress folder from URL in some cases. How to?

I'm trying to obtain hide wp-content folder from url in this way, to make it easy for visitors: permalink: mysite.com/wp/this-page-en required address: mysite.com/en/this-page The www folder ...
1
vote
0answers
50 views

Wordpress 4.4 old permalink redirect

i have a question for you and i hope you can help me out. I have a site with over 500 broken links due to an old permalink i changed 3 year ago. I know i could use a plugin for that (if you recommend ...
0
votes
1answer
66 views

Dynamic URL, not a physical page within the database

Knowing how WordPress essentially processes page requests (through index.php and .htaccess), I'm trying to figure out the best way to "ignore" a certain permalink structure, or rewrite it in such way ...
3
votes
0answers
28 views

WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]

I have a .cgi file, /data/displayQuery.cgi, that WordPress is showing a generic "Page not found!" error page for. I have my .htaccess file configured to not rewrite any file in the /data subdirectory. ...
1
vote
0answers
135 views

How to use https on one page only?

Shortly: I want my WordPress to respond in https on exactly one specifc route. Everything else should respond in http. Is that even possible in WordPress and how to do it? Details I have a single ...
1
vote
1answer
84 views

Site loads very slowly (4-5 minute load time)

I'm hosting a WP site on a VPN so I'm doing all of the server management. A while back, I simply renamed my WP folder so that it would be inaccessible. Now I need it to be accessible again and so I ...
0
votes
0answers
27 views

500 error after WP homepage url changed

So, I have error 500. I tried to replace with old htaccess file, but Wp don't let me login cause I have offline mode. How can I set wp url back? SOLVED Add these two lines to your wp-config.php, ...
0
votes
0answers
29 views

Wordpress Multisite htaccess redirect loop

I have a multi-site instance of Wordpress setup for a series of related websites. These work on a sub-directory approach (e.g. domain.com/team-events/). Within one of the sites, I have created a ...
0
votes
0answers
15 views

Can't get URL rewrite to work for participants database plugin

I am fairly new to WordPress, but here we go. For the past 18 hours or so, I have tried every method I have found on the internet in an attempt to force the url example.com/file/?pdb=3 to become ...
0
votes
0answers
21 views

WordPress removing query strings

I run custom scripts and plugins with GET parameters/query strings. Recently, when I try to access a page with query strings, something happens and the query string gets dropped. This, however only ...
0
votes
1answer
33 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 ) ...
0
votes
0answers
20 views

Add custom post name only with page URL

The problem I have is that the "travel destinations" are pages and the "accommodations" for each destination are custom posts, therefore the permalinks break. My destinations here: ...
0
votes
1answer
120 views

404 with post name permalinks

So, I have a pretty common problem - I recently upgraded to Ubuntu Trusty Tahr from Precise, and I had to upgrade apache as a result. Now, my wordpress site is accessible, but I am unable to access ...
0
votes
0answers
25 views

How to redirect deleted pages

I had several posts about individual books, which I combined to a post featuring all the books together. Now I want to delete and redirect those individual book posts to the combined post. I just ...
0
votes
0answers
64 views

Disable Direct Access To Image Not Working

As my website is based on the product designing website, where the user will design printing products and they can buy in my website, So i almost protected the image in all the ways, like layer over ...
0
votes
3answers
162 views

Redirect - remove custom query string

I have a problem with some pages urls. The pages url structure is like this: www.example.com/wp/custom-taxonomy/somepagename/?token=12345 I want that when i acces the url from above to redirect ...
0
votes
0answers
30 views

Remove /category for multisite

I need to remove /category word from URLs on Wordpress multisite: This code works fine for single Wordpress site: RewriteRule ^category/(.+)$ http://www.domain.com/$1 [R=301,L] But it doesn't work ...
0
votes
0answers
53 views

.htaccess Redirect with Wordpress in a subfolder

I am going to try to explain this as best as possible. I have a wordpress installation at www.Domain.com/careers/ Which is great, and really not a problem. The main problem is, i'm moving some ...
0
votes
2answers
101 views

.htaccess Non-'www' to 'www' Subdomain Redirection Only Works for Homepage

I would like a WordPress site to redirect all URLs to the www subdomain. Using the .htaccess configuration below, the homepage is properly redirected (i.e. visiting example.com/ redirects to ...
0
votes
0answers
19 views

Pagination redirection in WordPress

I had a blog website in a custom CMS. I recently re-developed the website in WordPress. The old website had pagination urls like "?page=2" But WordPress shows pagination urls like "/page/2" Now what ...
0
votes
1answer
19 views

How to rewrite a page url

I added a page to my WordPress, I wanted to rewrite the url of the page to a more user friendly one . https://localhost/wordpress/page?name=name+of+the+page To : ...
1
vote
1answer
57 views

How to hide login form if basic authentication fails?

I have recently been learning how to harden WordPress using the steps outlined on this page. When I get to the stage where I use the HTTP Basic Authentication (that's the one where the browser pops ...
0
votes
1answer
30 views

Can't access WordPress site in subfolder possibly because of .htaccess redirect from root installation?

I currently have one Wordpress installation in the root directory. I have now uploaded an entirely different (and second) Wordpress installation in /beta/ - connected to a second and separate ...
0
votes
0answers
49 views

Wordpress wp-admin redirect_to points to URL with folder name

I am having problem with wp-admin where the redirect_to variable holds my wp-admin URL with the folder name included in the URL. When I remove it, the redirect works good. The problem occurs when I ...