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
37 views

Add trailing slash to URLs not found

So I noticed that Wordpress automatically adds a trailing slash to URLs. I also noted that it doesn't do this for URLs that aren't found on the server. Why this probably is logical. Is there someway ...
0
votes
0answers
21 views

URL rewrite results in a 404, but everything should work!

So I modified this code that I found elsewhere and stuck it in a plugin. The plugin works; I can see the .htaccess file updated when I hit save on the permalinks page. add_action( 'init', ...
0
votes
0answers
57 views

403 Forbidden error when using the wp_login_form function

I use the function wp_login_form twice in my site for a simple client login. However, suddenly the problem started and every time I use it I receive this 403 forbidden error. My .htacess looks like ...
0
votes
2answers
51 views

What happens when permalink settings are updated?

I have to identical copies of the same site on two different webhosting companies (besides the actual domain of course). One of them works all the time with pretty permalinks and the other works fine ...
0
votes
1answer
59 views

How to redirect non existent pages/posts in wordpress using htaccess

How can I redirect non existent pages/posts in WordPress using only .htaccess file? Here is my code: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteBase / ...
0
votes
1answer
34 views

How do I Redirect Tags from Old Joomla Site to New WordPress Site?

I've recently converted a site from Joomla to WordPress. I'm down to polishing up the old Joomla site links that don't match the WordPress structure, and I've run into a problem where I need some ...
0
votes
1answer
99 views

Modify the .htaccess file

I have a very simple problem: I want to modify the .htaccess file. It seems I'm not the only person and I've seen the other questions and googled the issue. Nothing helps. Something keeps overwriting ...
11
votes
2answers
687 views

How to create custom 401, 403 and 500 error pages?

When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article. My aim is to create custom error pages ...
0
votes
1answer
72 views

WordPress site displaying 404 for any page apart from index

My WordPress site is returning a 404 not found error on any page apart from the homepage and /wp-admin. I have no absolutely no idea why this is. My Permalinks are set up to use ...
3
votes
3answers
105 views

How to Block Access to Standard Login Flow and Comment Flow

I've set up custom flows on my Wordpress blog for login, signup, and commenting. I would like to password protect the standard login flow so only I can use it, and block access entirely to the ...
1
vote
1answer
66 views

Apache Fallback instead of add_rewrite_rule

My requirement is to do SEO Friendly URL for an existing site in Wordpress. For example, Current URL: http://test.com/test/?pid=19971 that is the page "test" is rendering the data from some custom ...
0
votes
1answer
71 views

Temporary Infinite Redirect Loop

I have written a custom WordPress plugin for a certain site (this is not a public plugin, it is private written for that specific site). The plugin reads RSS entries from other sites, and then for ...
1
vote
1answer
330 views

How to add custom rewrite rule to .htaccess?

I want to add a custom rewrite rule to my .htaccess file using a function inside functions.php The rewrite rule I want to add is as follows: RedirectMatch 301 ^/author/(.+)$ http://name-blog.com/$1 ...
0
votes
1answer
36 views

How can I create a private site that is inaccessible from the outside?

I need a safe place where I can store data about projects that I am working on. This data includes text and files (pictures, sound and video). I want to create a private "blog" for this purpouse that ...
0
votes
0answers
22 views

Does WP suppresses .htaccess if permalinks are disabled?

I would like to use a .htaccess file, but still use the default link structure of WP. I didn't turn on permalinks, but did create my own .htaccess file. To my surprise, the file is being completely ...
0
votes
2answers
1k views

Force HTTPS using .htaccess - stuck in redirect loop

My Wordpress website is located at example.com/wordpress and I need everything inside to be accessible only using SSL. I've created a .htaccess rule that redirects http -> https: RewriteEngine On ...
0
votes
0answers
50 views

Redirect ALL subfolders to subdomains automatically

I've read several topics about redirecting some single pages to subdomains. There aren't a lot that explains this well and all requires me to manually edit the htacccess or create some folders for ...
0
votes
1answer
117 views

Troll the hackers by redirecting them

My website is getting somewhat popular, and with the it's increasing popularity there's an increase in the hackers. Last night I visited my security logs and found that everyday approximately 10 ...
1
vote
1answer
44 views

How could a .htaccess with authentication suddenly appear or change?

When trying to mark a comment as spam, I was presented with a basic-htaccess login. I couldn't login and then I remembered I do not have a basic login: the only thing my .htaccess in the wp-admin ...
1
vote
1answer
38 views

Redirect an old link to new site homepage [closed]

I need to redirect a single link www.abc.com/blog/?p=123 to www.abc.com/newblog/ I have used: RewriteRule ^blog/(.*)$ http://www.abc.com/newblog/ [R=301,L] It is redirecting all sorts of links but ...
1
vote
0answers
54 views

Accessing Subdirectories in WordPress Install

I have scripts that are in a subdirectory of my WordPress install folder. They are on the same level as the /wp-content/ and /wp-admin/ folders. I'm running them as form processing but I've got the ...
1
vote
0answers
21 views

Is there a directory my plugin can write files to that cannot be viewed via the browser/url?

I want to restrict access to some files uploaded via the admin interface but I cannot rely on the ability to use .htaccess (could be turned off, or they might be using a non-apache web server). I ...
0
votes
0answers
42 views

Issue with permalinks for custom post type

I have a little issue here... When i'm using default permalinks, everything works great, but when I set up %postname% permalink in settings, my template with custom post type is not loaded. ...
1
vote
1answer
261 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. ...
0
votes
0answers
43 views

How to Display HTML Site Images in Directory Above WordPress Installation

I have WP in a subdirectory of its own. I have two .htaccess files. The first is in the domain root: RewriteEngine on RewriteCond %{HTTP_HOST} ^automaticallynow\.com$ [OR] RewriteCond %{HTTP_HOST} ...
1
vote
1answer
42 views

Redirect blog archive into certain format

My blog archive URLs were like: http://example.com/2014/03 I changed my site's permalink from /%postname%/ to /%postid%/%postname%/, and using Redirection plugin, I set a redirection like: and ...
1
vote
1answer
19 views

How to secure files based on format and word in file name with wp-config or htaccess?

I have a wordpress site that I would like to secure specific files in the uploads directory, so that they can only be accessed by logged in users. The files either have the word "oneperson" or ...
1
vote
2answers
254 views

Nginx rules for subdomain multisite install (Bedrock)

I'm trying to move an existing Bedrock based multisite instance to nginx and am having difficulty getting a set of nginx rules to mimic the original .htaccess. Bedrock places the crux of the files in ...
0
votes
0answers
13 views

Wordpress double post name distinguish by term [duplicate]

I am working on a store locating Wordpress template where I have 5 categories for services. In each category I have 500 cities. I have rewritten my url from: http://www.website.com/post-type/post ...
1
vote
1answer
36 views

(Bluehost) navigating to the dashboard via mydomain.com/wp-admin/ results in directory listing

I recently had my WordPress blog's domain reassigned as the primary domain on my BlueHost account. The blog is in a sub-folder of public_html/. Below is the contents of the .htaccess file I ...
1
vote
1answer
84 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
1answer
42 views

VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?

Hello I think this is a beginner question, but I just do not know how to achieve this: Imagine the following: /public_html/ [Domain = foo.com] /public_html/wp_subproject1/ [Domain = bar.com] ...
0
votes
1answer
111 views

Wordpress constantly running out of memory

My Wordpress installation on a shared hoster is constantly running out of memory: The error pops up at seemingly random, for example when uploading photos or sometimes without doing anything just ...
0
votes
0answers
41 views

Changing WP location and wp-content folder name witouth loosing SEO

I'm trying to make my site the most efficient way as possible, and I find out thant changing lot of things in permalinks , security folders , etc, works pretty well. But what happen if the WP, is ...
0
votes
1answer
61 views

htaccess redirect for all categories converted to tags now showing 404

I have a WordPress site which syndicates content from a number of sources and auto creates categories and tags. I have converted a large number of categories to tags which now leaves a ton of ...
0
votes
0answers
40 views

Using root permalinks with a subdirectory install

My WordPress Address (URL) http://mydomain.com/wordpress My Site Address (URL) is http://mydomian.com My site works fine when accessed from http://mydomian.com and I have no problems to speak of, ...
0
votes
2answers
307 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
1answer
72 views

.htaccess and virtual host configuration for WP in its own directory

I've been taking a look at the modern WP development approaches using Composer and so on, for example Bedrock or WordPress-Skeleton. I'd like to adapt these approaches ad create my own WP ...
0
votes
1answer
56 views

URL redirect on updating the post date

I updated the date in the post. But the old URL has already gone viral and people end up in a deadlink as "page not found". I tried using Simple 301 Redirect WordPress Plugin and also Permalink ...
0
votes
1answer
69 views

Apache rewrite rules and wordpress problem

I tried to fix my problem by using wordpress rewrite rules but sadly it took me so long I tried this approach. I got it working for one of my simpler problems but now I can't get it to work for my two ...
0
votes
0answers
22 views

Folder installation to be in ROOT

What I want to achieve is just a simple removal of the /folder name after my website.com URL and have all my links and WordPress login just under website.com/wp-login.php. 1.) I did a restore ...
0
votes
1answer
52 views

Rewrite Question

I'm having troubles with creating my rewrite. I've been searching here (and other sites) for an example, but so far, no luck. My testing site is: ...
1
vote
1answer
158 views

WWW to non WWW redirect effects on load speed

I was using pingdom to test the load speed on a site I'm working on and got different results for www vs non www. Wordpress automatically redirects to either www or non www depending on the settings. ...
1
vote
1answer
131 views

Migration from old CMS to WordPress 301 redirection rules?

I need 301 redirection rule for migrating old CMS to WordPress. On old CMS I have URL structure like this: I wish is to move my site to WordPress and to have all old (or most) URLs with 301 redirect ...
0
votes
0answers
56 views

Custom URL rewrite rule for migrating to WordPress

I am trying to move my image gallery site from one CMS to Wordpress. On current CMS I have page with medium size image on it with URL: ...
0
votes
0answers
99 views

Multisite domain redirect subdirectory non-www to www without breaking root site

There are a ton of questions asked on Multisite domain mapping but none I can find with an answer that works for me. I am using subdirectories. Here is my configuration: (1) Root non-www: ...
0
votes
0answers
82 views

Gzip issue with mailchimp and comment-reply.min javascript files

I am testing my site against GTMetrix and in YSLOW, I have the following warnings: **Compress components with gzip** There are 2 plain text components that should be sent compressed ...
0
votes
0answers
47 views

Using htaccess and php to protect file, MIME problem

I'm using the method described here: Protecting WordPress Media Uploads Unless User Is Logged In (Based off of How to Protect Uploads, if User is not Logged In?. The redirect is working perfectly, ...
0
votes
1answer
64 views

How to hide wordpress error message?

how to hide wordpress error message "You do not have sufficient permissions to access this page" and show 404 error page for all non administrator's request like e.g mydomain.com/wp-admin/plugin.php ...
0
votes
0answers
47 views

Splash screen in htaccess, now links are not working

I wanted to use an already made html page for my wp site in root. Didnt want to move all wp inside a folder so I used the answer here using htaccess. Problem is, now if I write /wp-admin I got to the ...