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
vote
1answer
99 views

Change in permalink structure made javascript cookie not work correctly

My site needs a mechanism where a user is sent to agreement page when he visits the site for the first time. Once he accepts the agreement, it is saved in cookie. He can browse any page directly after ...
1
vote
1answer
29 views

How to hide that a certain non-Wordpress directory exists on the server?

I'm very much a newcomer to Wordpress and to this site, so I apologize if this is easy or addressed elsewhere. I have a WP 4.0 site, using a naked domain http://example.com, with the WP installation ...
1
vote
1answer
100 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 ...
1
vote
2answers
5k 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 ...
1
vote
1answer
72 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
2answers
565 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 ...
1
vote
1answer
338 views

Temp URL Redirect Loop

I am attempting to set up my site using a temp URL (IP/~username/domain) through hostgator, but I am running into some issues. I have gone into the database and replaced all instances of my old domain ...
1
vote
1answer
743 views

Add .html extension to custom post type taxonomies

I want to have the .html extension in the custom post type taxonomy urls. My custom post type taxonomy it is called "product_cat". I will need something like: ...
1
vote
3answers
253 views

Changing RSS feed URL structure

I am in the process of creating a wordpress website, and I just have one issue left - RSS feeds. Currently, the website has a .htaccess file blocking access to /category/* pages. It was part of a ...
1
vote
1answer
369 views

what could cause the htaccess file to be modified?

One of the wordpress sites that I created recently went down with a 500 internal server error. After hours of mind boggling and checking error logs, I found out that the htaccess files present in the ...
1
vote
1answer
37 views

3 blogs same installation, without WP MU

I've to create 3 blogs (different DOMAINS) on the same wordpress installation (I cannot use WP MU, unfortunately) so I came out with the idea that I could use categories, instead, so... every blog has ...
1
vote
1answer
779 views

Wordpress multisite htaccess

I set up Wordpress as a multisite and as part of the steps, it gave some instruction to update and replace the .htaccess file. Wordpress instructed me to replace the htaccess with this: ...
1
vote
1answer
982 views

Error uploading files bigger than 58 MB

For uploading files bigger than 58meg I get HTTP error. or IO error when using media uploader or 500 Internal Server Error when using browser uploader in WordPress v3.5.1 Multisite . It seems to get ...
1
vote
2answers
102 views

a one-off rewrite rule

I have one page that I need to change the URL for. Currently, the page resides at example.com/departments/human-resources/ (human-resources is a sub-page of /departments/ ) My client wants to ...
1
vote
2answers
577 views

deny IPs from wp-login using .htaccess

i am trying to ban a spam bot IP from my wordpress, since the "limit login attempts" extension mails me multiple times every day, that the same IP is trying to login. so i added the following to the ...
1
vote
1answer
121 views

unexpected problem in url rewrite

As per the answer provided in How to create custom URL routes? I have created the rewrite rule using the same function provided. add_action( 'init', 'wpse26388_rewrites_init' ); function ...
1
vote
1answer
190 views

How to redirect to correct pages after permalink structure change

I am changing my permalink structure from /%year%/%monthnum%/%postname%/ to /%category%/%postname%/. Is it possible to redirect old links using old permalink structure to the new link? Possibly via ...
1
vote
1answer
714 views

Index in root, wordpress in subdirectory

Okay I've googled this for hours...I installed wordpress to a subdirectory as a content management system, but I want my main index.php along with other files to remain in the root. What .htaccess ...
1
vote
1answer
302 views

Which is better: 301 Redirect in my .htaccess file or a plugin like Redirection?

Currently I am using 301 Redirects in my .htacess file to redirect old URLs to new URLs. Are there any performance benefits (i.e. site loading) o using a plugin like Redirection or should I just stick ...
1
vote
2answers
505 views

Protect Uploads in Multisite

I am using WordPress multisite (3.3.1) and am trying to protect uploads from certain blogs from being hotlinked and directly accessed. This is loosely related to How to Protect Uploads, if User is not ...
1
vote
1answer
237 views

How can I dynamically generate an image with a static image URL?

What I'm trying to do is very simple. Whenever someone visits, say site.com/socialproof.png, I want it to use a rewrite rule to point it to a file in my plugins folder. Can I do this with WP's ...
1
vote
1answer
131 views

.htaccess in subdir gets ignored by Wordpress' own .htaccess in /

I have a Wordpress installation on the root of an apache (I.E. on /) and WP wrote this custom .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] ...
1
vote
2answers
542 views

Can Wordpress redirect to a “similar page” in case of 404 error

This stuff is driving me nuts. The following url does NOT exist and should return a 404: http://www.easyjob.net/resume/ However, if I try to access it, I get a 301 to ...
1
vote
1answer
395 views

Restrict access of admin uploads to certain logged-in users?

This is a very open-ended, speculative question with lots of possible angles: has anyone worked with ways to restrict the access of certain uploads to a logged in user? I.e., how can the site admin ...
1
vote
1answer
290 views

Server crashed trying to restore wordpress multisite, images are not found pls help

I had an issue with a server that was serious enough to have to take it completely offline and then rebuild the os. I have gotten to the point where the new server is up and running. I have managed ...
1
vote
3answers
4k views

Wordpress redirection problem after moving to a new server?

I've created a site using wordpress and i moved that from localhost to new server. The steps i've followed is just got backup of old db from localhost and uploaded them to the new server. Changed the ...
1
vote
3answers
3k views

TimThumb & htaccess : clean url

Do you know if there's a way to alter via htaccess the timthumb urls ? My question is if i can change for example urls like this ...
1
vote
1answer
300 views

Wordpress slugs and 404 handling takes preference over folders in site root?

I have wordpress installed and permalink structure set to /%postname%/ In addition to WordPress folders, I also have a public_html/beta folder where I wanted to copy the same site and test some ...
1
vote
0answers
49 views

WordPress Example Code for Blocking Referrer Spam

While looking for a way to block semalt I found this code block in the Codex: SetEnvIfNoCase Via evil-spam-proxy spammer=yes SetEnvIfNoCase Referer evil-spam-domain.com spammer=yes SetEnvIfNoCase ...
1
vote
0answers
42 views

How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite

I have a question that I thought the below thread would provide the answer to, but things in WP have changed so it doesn't quite do it, although it helped my understanding of things. How to protect ...
1
vote
0answers
204 views

404 not found error on WordPress local host

I'm doing some work on a live WordPress site, and before making changes wanted to create a local copy of the site to use. I've gone ahead and done that, (using BackUpBuddy) but I am getting this ...
1
vote
0answers
32 views

create virtual subdomains for a bunch of urls on a site via .htaccess

I need to be able to create subdomains for a bunch of urls on a site, from: domain.ca/communities/city/nw/neighbourhood/ to: neighbourhood.domain.ca There are a couple of things that change in the ...
1
vote
0answers
46 views

URL for images folder on Multisite

I am developing a theme locally on a local multisite installation and trying to change the default gravitar with the following function: function custom_gravitar ($avatar_defaults) { $myavatar = ...
1
vote
2answers
303 views

Permalinks not working with Vagrant

I am using Vagrant to build up a little Wordpress development VM. When I select permalinks (postname) then the page from an article doesn't load. However, when I select the standard link (i.e page id) ...
1
vote
1answer
62 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
0answers
71 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 ...
1
vote
1answer
523 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. ...
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
1answer
42 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
211 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 ...
1
vote
0answers
136 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 ...
1
vote
0answers
22 views

htaccess breaks periodically [duplicate]

Ever since a few weeks, my .htaccess gets consistenly broken every few days. Sometimes it just gets an extraneous character at the end of file, but most of the times it's part of the file duplicated, ...
1
vote
0answers
162 views

htaccess getting overwritten over and over = 404 error

I have been having a big issue on my wordpress blog and don't know what to do right now. To make it short, my .htaccess file is getting overwritten over and over... These lines : # BEGIN WordPress ...
1
vote
0answers
73 views

Multisite install w/ Sub domains on a subdomain

I have a Wordpress installation which I have installed on a subdomain login.mysite.com. I would like to create additional sites that use the same application on feed.mysite.com, but technically this ...
1
vote
1answer
46 views

How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?

In .htaccess, I have this: RewriteRule ^land/(.*) /?land=1&exper=$1 [QSA,L] which makes sth like this: domain.com/land/exper1 fill in the $_GET with $_GET['land'] = 1 and $_GET['exper'] = ...
1
vote
0answers
151 views

Wordpress .htaccess file gives issues with subdirectory

I have a WordPress installation in the root and a subdirectory, which contains a index.html file. This file doesn't give me proper display as what it is supposed to when I access it. But when I ...
1
vote
1answer
379 views

WP Site in subdirectory Joomla! Site - Permalinks not working

I have WordPress in a test folder inside the root directory where I Joomla! 3.x site is running. Somehow the Joomla! rewrite rules are interfering with the WordPress permalinks rules. I keep on ...
1
vote
1answer
280 views

Need help rebuilding lost htaccess file

I originally posted this on Stack Overflow (7 months ago). I didn't receive any answers and was not in a position to pursue it further. As of now I am working on resolving this, and would greatly ...
1
vote
1answer
67 views

WordPress .htaccess to consider blog as directory

I redesigned an old (static) website to WordPress CMS. Now that site is WordPress based with 'blog' as a page displaying all posts. On previous (static) version, they already had a separate WP blog ...