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
1answer
98 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 ...
2
votes
1answer
780 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
47 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
3k 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
62 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
139 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
51 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
60 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
64 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
22 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
43 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
401 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
50 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
45 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
417 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
41 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
2answers
133 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
45 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
146 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
45 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
72 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
43 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
406 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
98 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
68 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
77 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
60 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
198 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
156 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
61 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
128 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
92 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
52 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
73 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
52 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 ...
0
votes
2answers
45 views

Redirect not working

I want to redirect the http://xyz.com/freebooks/ to http://xyz.com/shop/?min_price=0&max_price=0 I added this to the .htaccess and it redirects to the shop page but doesn't retain the /freebooks/ ...
0
votes
0answers
39 views

Redirect extra url to Multisite in folder

I have a multisite that uses subfolders (for instance domainname.com/mysite). I would like to have this site also available through for instance domainname.com/mysite2. Is there a way to do this ...
1
vote
2answers
1k views

.htaccess in wp-admin produces a redirect loop

I've decided to take the advice of protecting the /wp-admin directory using .htaccess on a website which keeps getting hacked. Whenever I upload .htaccess to /wp-admin, my browser says /wp-admin has ...
1
vote
0answers
122 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 ...
0
votes
1answer
30 views

Home links redirects to old site

So I have a issue that can´t really wrap my head around, it is most likely .htaccess related. I have just moved my site from a subdirectory to the main directory, this was done changing the site url ...
0
votes
0answers
35 views

Unusual behaviour in my wordpress due to htaccess

I discovered that wordpress/buddypress stopped working (a blank page), and the problem is related to htaccess issues . I found that those lines were added may be automatically (I don't remember ...
0
votes
1answer
411 views

Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server

Let me further explain the title. Originally we had a static marketing site at example.com and the wordpress blog hosted at www.joesexample.com/blog. We are now moving that blog to ...
0
votes
1answer
39 views

Some Pemalink problems, probably caused by wrong .htaccess configuration?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink configuration The main problem is that if I use the permalink setted ...
0
votes
1answer
71 views

How to redirect WP post with a specific word in the URL

I've changed the URL structure of my WordPress post (not page) from: example.com/archive/post-id to: example.com/post-name I'd like to redirect the old structure /post/ to the new one via ...
0
votes
2answers
44 views

Wordpress site not redirecting properly

We have developed a wordpress site recently, if i just type http://example.com in browser i will get the site, but if i type www.example.com it is not displaying anything, what happened to it, is ...
0
votes
1answer
239 views

Internet Explorer opens links to .msi files as text in a new tab

I'm really struggling with this issue. The WordPress site I manage has had .msi files available to download for a long time. Since the recent update to WordPress 3.8, Internet Explorer no longer ...