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

Private part of website

I am looking for a way to send a private link to my customers via mail. This private link contains a page on my website with a pdf, this pdf should be able to be viewed in this page and also ...
0
votes
2answers
21 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
22 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
16 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
25 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
28 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
14 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
8 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
30 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
17 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
8 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
16 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
56 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
15 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
15 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
16 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
40 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
0answers
23 views

Custom post type, category slug and fake page for category base

I'm list all category links with all post_type on the fake page (cloud). to my site I am using a few custom post_type Simple Post type slug: Shop Simple Category base: Cloud My Permalink settings ...
0
votes
1answer
34 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
21 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
26 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
54 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
19 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
20 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
10 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
18 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
0answers
14 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
16 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
55 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
17 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
24 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
84 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
23 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
36 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
52 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
18 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
16 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
34 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
20 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
30 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 ...
0
votes
1answer
25 views

How does the flow of htaccess files in sub-directories work

I have found a solution to this problem but it doesn't make sense to me and I'm hoping someone can explain it to me so I can understand. I have wordpress installed on the root directory ...
0
votes
3answers
73 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 ...
0
votes
5answers
52 views

How to redirect all 404 in a Wordpress subdirectory to the index.php of subdirectory?

I have a folder with name: wordpress_install/dev/abc Now, I have created a index.php in abc folder and I want all the urls like: wordpress_install/dev/abc/asdfasdfsdf (a 404 page) to be ...
0
votes
1answer
32 views

index.php not loading in main folder of wordpress

I just installed [first time] WordPress 4.3.1, but I was facing the problem with it so I downgraded and installed 4.2.5 and facing same problem. Problem: index.php is not loading, I clicked on link ...
1
vote
1answer
43 views

How to host unrelated pages on WordPress domain

Is it possible to have separate pages hosted on a WordPress site? For example, say I have my site www.website.co.uk, which has my WordPress blog and all that. Obviously it'll have things like ...
0
votes
2answers
46 views

Rewrite rule not working

I have a page on my wordpresss with url "/sca". I want all traffic from "/sca/project_0" to direct to "/sca?urn=project_0". I added a rule to my .htaccess file but it is not working. I don't think ...
0
votes
0answers
30 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
1answer
23 views

Url wordpress rewrite

In wordpress i have created a custom page called mail.php inside a folder form_support, my original url is http://exemple.com/form_support/mail.php i created htaccess file with rewriting rule : # ...