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)

-3
votes
0answers
22 views

Best .htaccess file for Wordpress site [on hold]

I would like to replace default .htaccess file with new one for my wordpress site. Can any share best .htaccess file which help me to run my site fast , smooth ,secure and also help in SEO.
0
votes
2answers
22 views

How to set 301 redirection after moving WordPress blog?

I have moved my wordpress blog to new domain. Old Address : domainname.com/blog | New Address : newdomainname.com Please pay attention about old address and new address. Now I want to redirect all ...
0
votes
0answers
14 views

wordpress_logged_in cookie not being recognized in htaccess

On my website, I have a system implemented that requires users to login before viewing any files in the wp-contents/uploads folder, specifically pdf's and doc files only. In order to do this, I have ...
0
votes
0answers
9 views

Custom archive page and htaccess mod_rewrite

I have created custom archive page gumball.php which can handle multiple categories or tags based on URL. For example: xyz.com/categories/gumball.php?categories=category1+category2 will display ...
1
vote
1answer
584 views

mod_rewrite loop, redirecting http to https on certain section of wordpress blog

I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http: /cart/ /my-account/ /checkout/ As well as these rewrite's worpress has added a rewrite to remove ...
0
votes
2answers
17 views

create a static folder independent with Wordpress

I have a website: www.a.com I want to add a folder of code samples like this: www.a.com/code//index.html So that at the end of each post I can refer the user to an example. How can I create a static ...
2
votes
3answers
791 views

.htaccess and 500 error, extra character added

I am having a weird problem. Every few days I go to my website and get an "Internal Server Error" - Or 500 error. I go into the .htaccess file of the site and notice it's been altered. One character ...
0
votes
2answers
226 views

Non Wordpress Folder in a Wordpress Site

On localhost (WAMP server) I have installed wordpress in the root directory (examplesite.com). I have an application that needs to run outside of Wordpress, so I would like it in the folder ...
0
votes
1answer
486 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
0
votes
2answers
557 views

add_rewrite_rule to remove /category/ from permalink

Hi I have many permalinks across my site that looks like this: http://www.mysite.com.com/market/category/slug/slug/slug/ http://www.mysite.com.com/market/category/slug/slug/ and would like to hide ...
0
votes
1answer
7 views

Conditional Permalink based on category?

There have been unanswered questions about this here and in the WordPress support forum. Is it possible to have a conditional Permalink structure for all posts in a category? for example, ...
0
votes
1answer
24 views

Missing images after moving servers

I cloned an inherited WP Multisite and have got it up and running thanks to advice in a this and this previous questions. Things are moving along with the exception of images. Missing Images On ...
0
votes
2answers
18 views

Multisite, can't see sub blogs

Based on advice I got from another question, I created a development copy of a multisite installation I've inherited inside of a Vagrant VM. On a test site as described here... I get an error ...
1
vote
1answer
277 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 ...
0
votes
1answer
21 views

How to redirect correctly a root domain to a subdomain in a subfolder?

The next .htaccess code redirects example.com (from /public_html root folder) to the subdomain1.example.com (to /public_html/subdomain1 subdolder) and an old page register to a new one at ...
0
votes
0answers
27 views

rewriterule problem

I'm struggling to get a rewrite rule to work: I have a Wordpress 4.0 site sitting in a subfolder of a top domain with a url similar to this: ...
0
votes
0answers
8 views

All Blog Links Return to Home Page

I have a website that has an HTML home page with a WordPress blog in its own subdirectory. Upon clicking the link to the blog, you are taken from the HTML home page to the WordPress blog, but when you ...
2
votes
1answer
686 views

Correct htaccess to display page while also passing in GET parameters

I have a wordpress page named: directory (it uses a custom template). When I call the page with: http://localhost:8888/wordpress/directory/?segments=listings/list It gives me the results I ...
0
votes
1answer
37 views

HTTPS to HTTP rewrite rules not working as expected

I'm struggling at getting these rewrite rules to work and was wondering if someone can point out my error(s). The following should redirect a user to HTTPS if they are at the login page or in the ...
1
vote
1answer
488 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
29 views

multisite 404 error for subdirectory

I am attempting to create a multisite as a subdirectory and I have followed the network instructions to the 'T'. The multisite seems to be set up correctly, the .htaccess and wp-config.php files seem ...
2
votes
1answer
581 views

Prevent users from accessing mp3s in my uploads folder?

I have mp3 players set up to play mp3s on my site. The mp3s are all being uploaded to the uploads folder. I don't want people accessing these directly, meaning I don't want people to be able to ...
0
votes
0answers
12 views

Add canonical link to http-headers via htaccess for an URL with query, URL without query being the canoncial link

tl;dr: Is it possible to have a RewriteRule which checks for a query ("/?print=pdf"), and adds the URL without this query as canonical link to the http-header of the URL with the query? Long version: ...
0
votes
0answers
15 views

Wordpress multisite htacces domain rule

I have wordpress multisite that has site.com and site.com/ca. How should I write on htaccess that when I type site.ca on browser it would show the site.com/ca?
2
votes
2answers
2k views

Error 101 after upgrading Wordpress

We have just updated to WordPress 3.1.3 by following the WP manual install tutorial. Note: This is a Network-enabled (multi-site) install. After uploading the new files, we now get the following ...
0
votes
1answer
21 views

adding a rewrite rule in wordpress functions file

I have a section of my functions.php file (which is definitely running as I ran a die() and it showed.) It is as follows: function looky_setPermalink() { add_rewrite_rule( ...
0
votes
1answer
250 views

.htaccess redirect not properly working [ ?utm_source=]

I have a wordperss blog. This blog has two domain names (example1.com and example2.com). In my situation, example1.com redirected to the example2.com. This redirecting work properly. I saw that ...
0
votes
0answers
16 views

Links not working on “post name” permalink

I am working on wordpress 4.0 I have uploaded a WordPress site on live server and have done all the changes in database files and config and site is working properly with index page, but when i click ...
1
vote
2answers
4k 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
2answers
407 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
0
votes
0answers
54 views

Restrict URL access to PHP files within wp-content/themes & wp-content/plugins

A theme author has confirmed that in their next update (sometime soon), they'll include code to restrict access to theme files, e.g. functions.php over HTTP. In the meantime, I've tested the ...
1
vote
1answer
82 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 ...
0
votes
0answers
9 views

How would I have to change rewrite rules to use a custom ms-files.php

I've previously wondered about securing file access by non-logged in users who know the full URL in multisite. When ms-files was still used modifications to this file allowed a basic form of WP-run ...
0
votes
1answer
49 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
0
votes
2answers
425 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
2answers
42 views

Best way to redirect site in subdirectory to root?

I have a WP 4.0 site that has been installed at: mydomain.com/site It's been there for many years, so there are lots of links from around the web pointing to it. As part of an overhaul I am doing, ...
0
votes
1answer
30 views

.htaccess help to a beginner

I have made a custom page template and created a new page which is set to use the custom page template. My URL for the custom page is now: www.domain.no/property The website will have 3 different ...
2
votes
1answer
2k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
1
vote
1answer
353 views

Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites

I have a custom 404 page, but dont want serve it for every broken asset that may crop up. Instead I want to just serve the Apache 404 as its much faster. I've found the following htaccess rule that ...
0
votes
3answers
47 views

Is there way to redirect all blog post pages to Home page?

I am creating a social bookmarking site using WordPress. I am using a custom field to store the web URL. Then when a user clicks the Title, it redirects to the original blog post page. Please check ...
0
votes
1answer
28 views

WP Multisite .htaccess interferes with cgi-bin

I'm currently setting up a WordPress multisite installation for my company and I've run into an issue. The set up is that the multisite runs out of a subdirectory (/wp) but appears to be at the root ...
0
votes
1answer
31 views

Permalinks not working on second wordpress installed in a subdirect

I have a main wordpress installed on the root and now due to a long story about incompatible plugins I need to install a second full instance of wordpress in a subdirectory. The main site works fine, ...
0
votes
2answers
468 views

How to remove category from wordpress url?

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have ...
0
votes
0answers
13 views

mod_rewrite Wordpress url change

I want to handle following specific url: www.testing.com/onboard/uehtietfmretvbcuymwvrbqtmvrktkqtrycitfqtvbiutfwkqeyfktwbcuhtwchtmihy1 (this will be the url in browser) to ...
0
votes
0answers
28 views

Pretty permalinks for subdomain installation

Currently, the only way my posts will appear is if I have Permalink settings set to "Default". I would like to set them to "Post name". When it's set to "Post name," I get a 404 not found error. My ...
0
votes
1answer
42 views

Site Redirecting to wp-signup.php

I migrated content from our production server to our dev server in an attempt to sync all environments. I used the All-In-One WP Migration plugin. Now, when I access dev.domain.com I am forwarded to ...
1
vote
0answers
38 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 ...
0
votes
0answers
7 views

mod_rewrite issue

I am having problems all of a sudden with images not displaying. If I deactivate mod-rewite in .htaccess then images come back but I can no longer access post page permalinks having to resort back to ...
0
votes
0answers
16 views

Wordpress internally rewrite rule challenge

Questions 1: I work on wordpress website for a client. But the client like to have a deep level url structure. The custom post type can be from level 1 to unlimited levels in the url structure. ...
0
votes
1answer
30 views

Rewrite WordPress Standard Feed URL - /feed/ to feed.xml

I want to rewrite http://www.ourdomain.com/feed/ in the .htaccess file to http://ourdomain.com/feed.xml And we have some other feed URLs to Rewrite. After a search I could not find the correct ...