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

What's the best way to manage a lot of 301 redirects in WordPress?

Currently my site has a lot of 301 redirects we are managing in our .htaccess file (several hundreds 301 redirects); however, I am wondering would it be better and more optimal I use a plugin such as ...
2
votes
2answers
2k views

Does WordPress Change the .htaccess File When Updating?

I've just implemented a new WP website, replacing an older hardcoded HTML site. I will be adding 301 redirects in the .htaccess file to point the old URIs to the new WP Permalinks. My questions is, ...
0
votes
1answer
376 views

Redirect from ip to domain

I want to prevent site to be accessible by ip. It could be accessible by only domain name, so I tried with htaccess trick. RewriteCond %{HTTP_HOST} !^mydomain\.com [NC] RewriteRule .? ...
2
votes
1answer
717 views

Htaccess redirect from '/%postname%.html' to '/%postname%'

I have a Drupal 5.x based travel review site which I'm moving over to Wordpress 3.x (same domain name). The Drupal site is structured like this: www.example.com/travel-guides (these are top-level ...
0
votes
1answer
515 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
2answers
567 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
116 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
118 views

plugin links not working [closed]

I'm developing a plugin with the latest version of WordPress (3.4.2) locally (XAMPP 1.7.7 [PHP: 5.3.8]) and for some reason the links are not working within the plugin. I just have a simple delete ...
1
vote
1answer
177 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 ...
0
votes
1answer
58 views

WordPress on a subfolder but accessible from root

I've searched quite a lot without finding a solution. I have a wordpress blog in /_wp and something else in /other What I'm trying to is that every request gets redirected to the WordPress. Except ...
0
votes
1answer
289 views

Problems with permalinks (.htaccess not working)

I would like to use permalinks but they are not working. Whenever I use permanlinks like /%postname*/ are something else that differs from the default ... I get an 404-error. Calling php_info I can ...
3
votes
1answer
140 views

Isolating WordPress to a subfolder

I'm trying to isolate a wordpress installation on our site to a specific subfolder. I created a folder on our root site named _wp and placed all the wordpress files in there. I added the following ...
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
95 views

Wordpress is rewrite my htacces file. I adding a font rule

I used webfonts in my Wordpress site. I need a rewriterule in my htacces. I put this in my htacces file: RewriteRule ^fonts/(.*) /mikevierwind/wp-content/themes/roots/fonts/$1 [QSA,L] But when i ...
-1
votes
1answer
195 views

WordPress sections in htaccess kills FrontPage permissions

I have WordPress running in the public_html directory of my web server (i.e. the primary domain on my account points to this directory). There are subdirectories off of this folder that are for other ...
0
votes
3answers
938 views

Force redirect single.php to index

I want to make a force redirect for single.php to index so that it is never reachable by direct access (the site is built in a way that you retrieve all the content on the index page, still need to ...
0
votes
2answers
3k views

How to disable the default WordPress redirect to non-www URLs?

I am trying to redirect all non-www to www URLs in my WordPress MultiSite install. I am using a simple .htaccess rule like this: # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] ...
1
vote
0answers
88 views

Canonical Resource URLs Across a Multisite Network 2012?

This question was asked back in 2010 @ Outputting Canonical Resource URLs Across a Multisite Network? WordPress MU Domain Mapping @ Wordpress.org Since many things have changed since then, I was ...
0
votes
1answer
73 views

old permalinks not found

Looking through Google Webmaster Tools, I have a lot of 404s for posts with permalink structure of /%year%/%month%/%day%/%postname%/ I have since changed permalinks to /%category%/%postname%.html I ...
1
vote
1answer
566 views

WordPress mod_rewrite is canceling/overwriting my other mod_rewrite rule

in /www/ I have an .htaccess file containing: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^([^.]*\.less)$ compilers/lessphp.php?file=$1 [R,QSA,L] ...
1
vote
1answer
687 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 ...
0
votes
1answer
316 views

custom naming of search permalink /search/

I found this snippet online … function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); ...
0
votes
1answer
585 views

rewriting search-permalink with htaccess - search results are are “opened” automatically?

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
0
votes
2answers
3k views

Two “.htaccess” Files Located in Different Directories?

I found two ".htaccess" files, one is located in '/httpdocs/.htaccess', another one is located in '/httpdocs/wordpress/.htaccess', the content is different, is it normal? The Wordpress was installed ...
-1
votes
2answers
261 views

Please Check this '.htaccess' File

I just found my '.htaccess' file has the same lines of code repeated twice as below, maybe some plugins changed it, is it incorrect? Should I remove the repeated one? Thanks!! <IfModule ...
0
votes
1answer
62 views

Files placed in directory with wordpress 404

I changed my WordPress permalinks settings from the default to displaying the name of the post. When I did this, all the files that I had been storing in the directory with WordPress ...
0
votes
1answer
74 views

A question about .htaccess

I'm redeveloping a site for a client. Their current site is written in .asp. I've rebuilt in WordPress as they need a CMS. We're repointing the DNS to our hosting environment. My question is - I ...
1
vote
1answer
290 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 ...
-2
votes
1answer
446 views

Hiding wp-config.php via .htaccess on an install installed in another directory?

Say my wordpress install is here, example.com/wp/ but my .htaccess is in example.com, am I ok with <Files wp-config.php> Order Allow,Deny Deny from all </Files> or do I need to ...
1
vote
0answers
321 views

htaccess rewrite, adding segment to url

Im not that good with htaccess files & regexes, and i'm trying to add a segment to a certain url. I'm building a website for a festival and we have a comon structure for the artists being: line-up ...
0
votes
1answer
129 views

Need rewrite for URL with specific string

I need help with one redirect, unfortunately I don't have idea how to write this for Wordpress. Should be .htaccess redirect or function in functions.php? Noob I am, so please help :) OK, I have ...
1
vote
0answers
280 views

htaccess rewrite conflict with wordpress rules and ssl

this one has me buggered- I have the below htaccess rule to redirect ssl to non-ssl pages. this works fine, except I'd like to exclude certain wordpress requests from this rule- for example, ...
1
vote
0answers
150 views

Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect

I have recently added the 301 redirect non-WWW to WWW on .htaccess for my current running blog multisite (Wordpress blog resides under "mysite.com/home/" directory), they seem to work fine after all ...
0
votes
1answer
106 views

Redirect within wordpress template/plugin

I've done a bit of googling, searching on forums, etc, and can't find a good answer. Here is what I'm doing: I need to pass a variable in the url to the page and have a rewrite to make it pretty. So, ...
-2
votes
1answer
137 views

How can I stop WordPress from catching URL's for static pages that I save on my server

I posted a question about whether it's possible to add a Page in WordPress without headers and footers. Here's that question: Add a Page without header and menus? So how can I create a static page ...
1
vote
0answers
160 views

Struggling with add_rewrite_rule

I've read this: Wordpress redirection to get url friendly That led me to this: 1) wp.tutsplus.com/tutorials/creative-coding/the-rewrite-api-the-basics/ 2) ...
2
votes
2answers
493 views

Why should I password protect WP-Admin?

Just occured to me: what's the point of password protecting www.yoursite.com/wp-admin when a user can just type www.yoursite.com/wp-login.php, bypassing the password on /wp-admin? Am I missing ...
0
votes
2answers
561 views

Multisite - 404 when accessing sub-sites

Setting up a multisite on a blog which root url is dev.domain.com, using subdomains. So, for example, a subsites address : site1.dev.domain.com Everything works fine as long as i stay on the main ...
1
vote
0answers
88 views

I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it's working. Why?

this may seem like a weird question but I have something working and I don't understand how. I have moved my wordpress install to a subdirectory and am using the .htaccess file to redirect anything ...
4
votes
2answers
778 views

How to change or remove .htaccess per plugin?

I am looking for a way to edit or reset the .htaccess for a wordpress site without access to the filesystem, working only with the wp-admin web interface and/or plugins* (see below for the back story ...
1
vote
0answers
484 views

WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)

I have an issue I've been facing for a bit now. Moved away from it, but now I'm back and just have no idea after trying to find a solution online. It seems individuals have faced similar issues, but ...
0
votes
2answers
820 views

Cannot login to Wordpress site after changing .htaccess for security purposes

This is the original .htaccess on my local computer # Block the include-only files. RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ - [F,L] RewriteRule ...
0
votes
2answers
658 views

Hide a subdirectory on my website hosting

I have a website www.mcruiseon.com. I have added .htaccess to get all www.mcruiseon.com to redirect to www.mcruiseon.com/wordpress. But the 'wordpress' still shows up on my html link on browser. Can I ...
2
votes
4answers
589 views

Permalinks to Custom does not work (out of box)

I have tried to change mode of .htaccess in wordpress folder to 644. Yet, I get Not Found The requested URL /wordpress/features/ was not found on this server. I keep reading about rearranging my ...
1
vote
0answers
550 views

How do I setup htaccess for 301 redirects, post Joomla to Wordpress migration?

I've almost completed the tedious task of migrating a relatively complex Joomla site over to Wordpress. The (more or less) final stage I am wishing to figure out is the 301 redirections. I've spent ...
1
vote
0answers
184 views

Adding Contact Form 7 to my anti-spam rules in .htaccess [closed]

I have the following rules set in my .htaccess file to block spam. It works by not allowing anyone to login, register, or make a comment unless the conditions are met. It works, but I would like to ...
0
votes
1answer
841 views

Changes to .htaccess not updating the file (old rules still take effect)

I was running a Wordpress site using pretty permalinks, and everything was dandy - the .htaccess file was behaving, and url rewriting was working. This weekend, I decided to convert the site into a ...
0
votes
1answer
287 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 ...
3
votes
1answer
174 views

Removing rules from .htaccess

I'm writing a small plugin that needs to write to .htaccess a simple non_wp_rule and i am doing it like this: function ci_flush_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } ...
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 ...