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

How do I put up a splash page and have all WordPress links redirect to this page?

I would like to put up a splash page and have all site links (posts, pages, etc.) to redirect to this splash. I know there are a number of ways to create a splash (i.e. page template in WordPress and ...
0
votes
2answers
1k views

MAMP.app & .htaccess - Can't override after config

For whatever reason I can't seem to get my .htaccess file to work correctly on a local Wordpress install. What I'm trying to achieve is to have the themes assets paths rewritten as such: RewriteRule ...
0
votes
1answer
78 views

wordpress permalinks tweeks

I am getting following permalink structure after creating any post... http://domain.com/wp/postname As per Permalink Settings.... Post name: http://domain.com/wp/sample-post/ This permalink is ...
0
votes
1answer
381 views

Can't access WP site over WiFi network

I'm making a mobile site and I'm using the main computers IP adress to connect to it from the iphone 10.0.0.1/wp With normal sites it works fine, but the WP site I get is stripped from CSS, JS, and ...
1
vote
1answer
121 views

Worried I have a funky .htaccess for WP site in light of strange search engine behavior

My friend started a new (non-commercial) blog 5+ months ago, but Google + Bing are acting like we're telling it to not be indexed. I don't mean it ranks poorly. I mean it doesn't rank at all. I ...
0
votes
1answer
39 views

pictures does not apeare in posts

I installed last version of wordpress by activating network. I can upload images or any media and insert into posts, But when I publish that, medias including images or any other media. My htaccess ...
0
votes
1answer
90 views

Wordpress redirection to get url friendly

I want to get url friendly for pass data to page from other page. I explain : I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( ...
0
votes
2answers
2k views

Pagination problem (plugin wp-pagenavi) with a custom post type?

I am currently developing a WordPress website with a custom post_type called "music". I use the plugin wp-pagenavi to paginate content "music". When I link on the first page, it's OK (see link below) ...
0
votes
1answer
103 views

mod-rewrite rules grabs “broken permalinks”, too

This is the automatically generated htaccess file of WP using permalinks for the pattern /%year%/%postname%/ (working with http://localhost/BLOG-FOLDER/ yet): <IfModule mod_rewrite.c> ...
6
votes
2answers
871 views

Multisite htaccess on localhost with WP as an SVN external?

I've mimicked Otto's setup here: http://ottopress.com/2011/creating-a-wordpress-site-using-svn/ and my brief example is below. That tutorial is specific to a single site install, and specifies a ...
0
votes
1answer
52 views

Test site pages go to main site

I have a test site installed on www.mydomain.com/testsite. The problem I have is that if I type in the url www.mydomain.com/testsite/about I get redirected to www.mydomain.com/about. My page for my ...
0
votes
2answers
2k views

Images in sub-pages fail to load

I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids. The content of the .htaccess is this: <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
3answers
1k views

Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard

I have a custom "about" post: function about_register() { $labels = array( 'name' => _x('About Page', 'post type general name'), 'singular_name' => _x('About ...
4
votes
2answers
172 views

Allow admin login at /admin

I am interested in: how can we change the default login url /wp-admin to /login how can we add another url for login so that both /wp-admin and /login would work I tried to use a custom filter and ...
1
vote
1answer
301 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 ...
0
votes
1answer
294 views

How to redirect RSS feeds to Feedburner and keep pretty permalinks?

There are many tutorials out there, but all of them give you the same code snippet. I put it into my htaccess file, but the feeds are not being redirected. I don't want to use a plugin. I'm sure the ...
1
vote
1answer
673 views

Does WP Have a Function To Generate .htaccess RewriteCond?

I know that I can edit .htaccess manually and add a RewriteCond statement inside, but I need to build a plugin that does this the proper way by using WP rewrites which then get pushed into .htaccess ...
0
votes
1answer
164 views

Wordpress add_rewrite_rules for custom URLs ending in .html

It's pretty common to see Wordpress running on pretty permalinks in the style of: /blog/2012/04/my-post/ However I'm trying to customize a fresh Wordpress install with a different set of URLs. I ...
0
votes
1answer
536 views

What would cause a 500 Server Error with permalinks turned OFF?

I'm using the "default" setting for permalinks, at least I just switched back to that, and I'm still getting a 500 response code when trying to get to any post page like mysite.com/?p=4536 I can see ...
0
votes
1answer
111 views

Mass .htaccess URL Forwarding

I'm doing the migration of a site, from MovableType to WordPress. The website contains around 3500 posts and when I uploaded the information to the new version of the site, the links have been ...
0
votes
1answer
259 views

How can I create a smarter .htaccess file that will add a directory?

This is my current .htaccess file: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) /directory/ [R=301,L] And "directory" is where my wordpress install is. So this simply redirects people ...
0
votes
1answer
2k views

Rewrite rule that wp-login.php?action=register is left alone

Unfortunately buddypress breaks a facebook connect script because of the rewrite rules. It changes /wp-login.php?action=register into /register/ I tried to find where the custom rewrite rule is ...
1
vote
1answer
1k views

Change the actual (or viewable) Wordpress directory structure

I like the simplicity of wordpress and all it has to offer, but for security purposes I would like to change the actual (or viewable) directory structure of my site. The install has a set of files ...
0
votes
2answers
2k views

How to? Redirect /category/sci-fi/ to /category/scifi/?

I changed the wordpress category slug from "sci-fi" to "scifi" a few months back by accident. How can I redirect /category/sci-fi/ to /category/scifi/ so that /category/sci-fi/page/2/, ...
3
votes
1answer
3k views

Rewrite rules in .htaccess get overwritten?

I'm not able to make it work by adding custom rewrite rules into functions.php or adding custom permastructures either. I have this code in my .htaccess that is working fine. # BEGIN WordPress ...
2
votes
2answers
107 views

Wordpress best solution shared theme for consumers and businesses (two url's one instaltion)

What would be the best solution for a wp (cms style) site containing a sub site for consumers and businesses. I've made a wp theme and its almost finished. In essence its gives you two choice to ...
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 ...
0
votes
1answer
2k views

How to prevent WP overwriting my custom htaccess rewrites?

I've used some custom rewrites implemented by the Roots framework. Occasionally they get wiped: certainly if I visit Settings > Permalinks, but also at seemingly random times. My htaccess reads so: ...
0
votes
1answer
485 views

Getting WordPress to work inside a rails 3 application

I am migrating an existing WordPress blog into a subdirectory of a new rails 3 app (deployed on Apache2 / Ubuntu 10). I have PHP/MySQL installed, and I have a standard rails app folder structure in ...
0
votes
2answers
2k views

Wordpress site blacklisted by Google about .htaccess [closed]

my website www.saoyuying.com (the site is in Chinese :)) is included in Google's malware blacklist yesterday. But I didn't find any unusual files on the server. Google's report mentioned that "Some ...
1
vote
1answer
4k views

Cannot get media type from 'x-mapp-php5'

I am moving a WordPress site from a shared hosting package to a VPS at 1and1 hosting. They have PHP ver. 5.1.6 but PHP5 support is there. I added the following 2 lines on the top of .htaccess file to ...
3
votes
1answer
497 views

301 Redirects for Changed Permalink Structure & Category Base

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure: domain.com/CATEGORY/POSTNAME/ The new site has the following permalink structure: ...
0
votes
1answer
483 views

Htaccess maintenance page rules that actually work with WordPress?

I am trying to take my site offline for maintenance but only allow access to my IP address. However I can only ever manage to produce an internal server error. I don't understand how it exactly what ...
4
votes
1answer
2k views

Passing variables through permalink structure

I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as ...
0
votes
1answer
745 views

Changes done to .htaccess are not getting reverted back

I am new to WordPress and playing around with it to get some idea about its working. I have done some changes to WordPress' .htaccess file to add some redirection and that worked perfectly fine. Now ...
0
votes
1answer
70 views

WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required

I have installed Wordpress in a subdirectory '/medical' and want the address to show up as www.mysite.com/page not www.mysite.com/medical/page The Wordpress Codex here : ...
47
votes
7answers
8k views

Best collection of code for your .htaccess file [closed]

We have the Best Collection of Code for your functions.php file thread, so I thought that it might be useful to create a thread for our .htaccess files. AND PLEASE REMEMBER TO ADD ANY OF YOUR OWN ...
5
votes
1answer
280 views

Clash of the rewrites

I have a category called 'neighborhoods'. I also have child categories within 'neighborhoods' E.G. Lakewood, Highland Park... When I click 'highland park' the url is ...
0
votes
1answer
4k views

custom htaccess rewrite rule for page

i have a page in wordpress called "video". its page id is 6, and its slug is "video" in my theme ive set it up to show content based on GET variables here is the URL rewrite im trying to set up: ...
3
votes
1answer
2k views

Wordpress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]

Possible Duplicate: WordPress upgrade now receiving Error 101 (net::ERR_CONNECTION_RESET): Unknown error We have just installed WordPress 3.0.1 and everything worked fine. However, as soon ...
0
votes
1answer
238 views

In a subdomain network, what .htaccess settings can I use to have WP ignore requests to one subdomain?

I have a subdomain network installed at, say http://example.com. I need to have my webmail running at http://webmail.example.com. When I go to this domain it redirects to a page for creating a new ...
1
vote
1answer
877 views

How Do I Programmatically Force Custom Permalinks with My Theme?

I'm making a custom theme. It's a highly specialized theme to make WordPress into like an application rather than a CMS system or blog. For instance, a Dental Office Scheduling System (with CMS and ...
0
votes
1answer
3k views

hide wp-content from urls

Here is what I am thinking of trying to hide wp-content from the urls of files included in page source. defining the following in wp-settings.php define ...
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] ...
2
votes
3answers
916 views

How to add .htaccess code through a function?

I need to add the following .htaccess code through a function <IfModule mod_deflate.c> # Insert filters AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html ...
1
vote
2answers
725 views

Remove category from url

I want to remove /category/ base from the permalinks. I tried the solution ...
1
vote
0answers
124 views

How to avoid directory name collisions with root Wordpress install [closed]

I need to know how I can keep the end-user of a wordpress site installed in the root directory from creating slugs that will interfere with sub-directories that are already present. I've Googled ...
0
votes
2answers
210 views

Changing functions.php and .htaccess files

Can I mess up my Wordpress site if I change functions.php file for my custom theme? One time I added some code to it and it gave me some PHP errors and my site was inaccessible. Luckily it was in the ...
0
votes
2answers
474 views

How to use different domains for different blogs hosted in the same host in subdomains with .htaccess

Background i have a website running on wordpress and all its files are located in public_html of my host. Within it i created a sub domain "phantomomaga" and redirected an other domain to that sub ...
0
votes
1answer
997 views

register_post_type and register taxonomy and htaccess

I installed a theme called "The Dawn". It supports the addition of new type of post and a taxonomy. Here's the code: register_post_type('portfolio', array( 'description' => 'TheDawn ...