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

.htpasswd asking for authentication on home page

I have Wordpress installed on a subdomain. I added a .htpasswd file to the wp-admin folder. This works as intended on the login page and if I try to cancel or close the pop-up window I get the ...
0
votes
0answers
50 views

How can I redirect all wordpress tag subdirectory (subfolder) to another one (archives/tag)

I changed my permalinks and it working fine but I need to redirect old tag folder to archives/tag to not lose links which google indexed below is my .htaccess file in the root of my recipes site ...
1
vote
0answers
21 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, ...
0
votes
4answers
44 views

Will deleting WP's code in .htaccess cause problems?

I need to use the following redirect on my site: RewriteEngine on RewriteCond %{HTTP_HOST} name.com RewriteCond %{REQUEST_URI} ^/(1[0-9]{3}|200[0-9]|201[0-3]) RewriteCond %{REQUEST_URI} !/2013/12 ...
0
votes
1answer
953 views

Wordpress in sub directory wp-admin problem

I have WordPress 3.3.1 installed in a sub directory on my site just to use as a staging test site. It seems the root sites .htaccess is creating problems for Wordpress wp-admin page. I've set the ...
0
votes
0answers
103 views

403 forbidden issue in wordpress

i have corner advertisement plugin in my wordpress website, this plugin used to convert given image into swf file and display it in any one of corner with peel effect. this plugin only not working in ...
0
votes
0answers
36 views

WordPress htaccess

I got the following from the html5 boilerplate htaccess file. Is this safe to add to my wordpress htaccess? And will it help? <IfModule mod_deflate.c> # Force compression for mangled headers. ...
1
vote
2answers
93 views

301 Redirect To Post ID

I have an existing asp based blog where all posts contain a post id in their URL (template_permalink.asp?id=123). I have a blank WordPress blog. I will have to recreate all of my posts manually, ...
0
votes
0answers
14 views

Security: How to disallow viewing/browsing by author? [duplicate]

I've already inserted htaccess code to disallow searching for users by numeric id. However, one can still manually input a user name to view/browse by author, e.g. http://mywpsite.com/author/peter/ ...
0
votes
1answer
37 views

Simple URL rewriting gone wrong

I have this .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC] RewriteCond %{REQUEST_FILENAME} ...
0
votes
0answers
80 views

Custom Post Type Permalinks Problem

looking for some help with a permalink structure problem. I am using this code here http://pastebin.com/QfgAMkfV as a plugin with hopes of creating a structure like so /films/ /films/film-name/ ...
0
votes
0answers
180 views

Problems with moving wp-content to a subdomain

Got a little problem. I wanted to move wp-content to a subdomain (content.sitename.com) but there's a weird problem when rendering PHP-Content (e.g. style.css.php). Every PHP file in ...
0
votes
3answers
347 views

Giving Wordpress it's own directory and using .htaccess Directory Index

Would this be a bad idea for any reason? - installing Wordpress in a sub-directory (ie: http:// example.com/wordpress) alongside the current website (ie: http:// example.com) that is not using ...
0
votes
1answer
166 views

Remove subfolders from URL

I am having a tough time removing the subfolders from the URL in my WordPress site. Currently, the URL format is: www.mysite.com/subfolder/index.php/category/postname I would like to remove both the ...
2
votes
1answer
104 views

How to redirect url requests to https? [closed]

I've searched far and wide for a solution to this and I am sure it's simple but I simply couldn't find a solution. This is the regular wordpress redirect code: <IfModule mod_rewrite.c> ...
0
votes
1answer
44 views

Restrict Content for only Contributors via .htaccess

I have been using this code to restrict content download from wp-content/uploads for only logged in users: RewriteEngine On RewriteBase / # Add these lines right after the preceding two ...
0
votes
0answers
51 views

Allowing access to certain Wordpress created pages or posts with htaccess / htpasswd

Trying to figure out how to give access to a certain page, lets say http://mypage.com/page and not letting people access the main index via http://mypage.com. Or just simply disallow access to ...
1
vote
1answer
393 views

CNAME vs A Record for WWW - with 301 Redirects

I am using a 301 redirect plugin: Quick Page/Post Redirect Plugin and my site's URL is http://example.com <-- notice no www. This works great for the following scenario: User types: ...
0
votes
4answers
3k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
0
votes
2answers
642 views

How do I redirect a post url to a custom url?

I've created a page that loops posts. Each post acts as a category link so that when you click it brings you to a category archive. My issue is that wordpress somehow overrides my htaccess and ...
1
vote
1answer
464 views

WordPress keeps writing rewrite rules to .htaccess

WordPress keeps writing rewrite rules into .htaccess again and again till it causes an error and causes server to return 500 Internal server error... i.e. My .htaccess is a series of # BEGIN ...
0
votes
1answer
68 views

Hide pages from google and visitors

I have wordpress site where i have few custom type pages. I load the content of those pages with jquery load. But I dont want that those pages are directly visible. So if user goes to ...
2
votes
0answers
159 views

How to write .htaccess dynamically? [closed]

I am trying to set permalink structure on theme activation. The following function included in function.php of theme. // Executes function on theme activation function myactivationfunction() { ...
1
vote
0answers
156 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
6answers
183 views

Pages 404 in wordpress

First of all, I am very new to wordpress and know almost nothing about it. When I create the page foo using in wp-admin, I get the message that the page is created. When I click on view page, it ...
0
votes
0answers
13 views

Setting up a virtual subdirectory to display identical content as root directory [duplicate]

We have a standard Wordpress installation being used as a CMS. We're using standard pages with basic permalinks (e.g., /page/ or /parent/page/). We'd like to have that exact same content mapped to a ...
1
vote
2answers
129 views

How to publish new posts/pages in root instead of subfolder, but keep old structure in place?

I have a blog that was setup in example.org/blog/ many years ago, so all its files are in /blog/. Back then it seemed like a good idea, but now we want to slowly get rid of the subfolder. Of course ...
0
votes
2answers
648 views

How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?

I have a folder and file structure already in place for a site to which I am inserting WordPress. My goal is to execute WP at the root level (/) when a visitor just visits the domain without a path, ...
0
votes
0answers
742 views

403 forbidden due to .htaccess?

I have this 403 forbidden issue that i can't tell what's causing it. At this moment, i've already talked with theme support, wich advised me to talk with host support, wich i've done it already, they ...
0
votes
1answer
525 views

.htaccess rewrite

I have created a custom post type called 'event' and added an event called London 2012. I want the following URL structure for a page: local.mysite.com/london-2012/speakers I have created a page ...
1
vote
0answers
72 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 ...
0
votes
1answer
53 views

How do I block a subdirectory from WordPress theming?

I have a WordPress site. It works great. But I have a subdirectory on my server where I work on client websites. It's a development space and most of those sites are NOT WordPress. Sometimes (but not ...
0
votes
0answers
64 views

Redirect from domain.com to subdomain.domain.com

Lets say my site domain is main.com and this is a wordpress site. I have 4 subdomains,say, cat1,cat2,ca3,cat4. Random posts and pages are displayed on main.com.They come into either of 4 categories ie ...
1
vote
1answer
45 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'] = ...
0
votes
1answer
64 views

Wordpress site not working after move

My site used to be in www.website.com/wordpress, now I've moved it to the root (www.website.com). I followed the wp codex instructions: 1. changed site url in admin cp - after I saved changes, I got ...
-1
votes
2answers
192 views

Custom url rewriting

I am struggling to create custom rewrite rules for wordpress. This is my url structure http://domain/cityprofile/?city=Sydney where city profile is a page template. Now i want to make this url ...
1
vote
2answers
573 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 ...
8
votes
3answers
5k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
0
votes
1answer
60 views

How can I set up a completely separate (not multisite) Wordpress installation as a subdirectory of an existing Wordpress blog?

I currently have a Wordpress multisite network running at http://www.mysite.com and rooted in /var/www/html. I need to set up a completely separate, single-site Wordpress installation accessible via ...
0
votes
0answers
101 views

customize urls displayed by previous_post_link and next_post_link

I am using the below code to display my next and previous links in single.php: <div class="nav-previous"><?php previous_post_link( '%link', '<img height="34" src="' . ...
0
votes
2answers
164 views

htaccess and htpasswd

im trying to lock my admin panel from my users with adding htpsswrd file to wp-admin folder. but also i want my users can edit their profiles. so i create this file (htaccess) AuthName "Username and ...
0
votes
0answers
38 views

Removed and Reinstalled Wordpress, Redirect Broken now

I just removed and reinstalled wordpress, I think something messed up.. Now when I enter URL, such as "test123.com", nothing load.. The ".htaccess" file on root folder is empty. and content of ...
0
votes
0answers
42 views

Wordpress links/site title won't work

I have one Wordpress installation at www.website.com, and a test site at www.website.com/test. The standard site works fine, but the links on my test site act weird. I use post title as permalink ...
0
votes
1answer
82 views

Redirect Wordpress MS to no-www version, excepting some dirs and prefixes

I have a Wordpress MultiSite, let's say: example.com two.example.com tree.example.com ... xyz.example.com Currently, I'm using this: RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ ...
0
votes
0answers
44 views

.htaccess not working in Wordpress

I'm trying to make use of the post name permalink so that visitors can access the page created by the plugin that I'm using. I've already checked phpinfo() and mod_rewrite is listed under the loaded ...
0
votes
0answers
3k views

Why 'Authorization Required' is coming on wordpress login

When i try to login to my WordPress blog admin why this pop up error come .. "Authorization Required" http://stpatrickscollege.edu.pk/wp-login.php
0
votes
1answer
106 views

redirect old pages by .htaccess

i want to redirect pages from sitename/sitename/pagename.html and sitemap/sitename/ to sitemap/sitename/pagename how i can do that by using .haccess file i tried this code ...
0
votes
1answer
280 views

Selectively Disabling PHP via .htaccess in Root Directory

I'm reading up on securing WordPress and one of the commonly suggested techniques is to use an .htaccess file to disallow PHP execution in wp-content and wp-includes. I then read about another hack ...
0
votes
1answer
80 views

htaccess 301 Redirect not working from aspx to new WP permalink

I'm fairly experienced with htaccess files and Rewrite/Redirect rules, however, this one has me stumped as to why it's not working. NONE of the following lines (used individually, not together) have ...
1
vote
1answer
707 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: ...