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
0answers
5 views

Uploading high ress images: image data does not exist

I have a reason to let users upload High Ress images. My hostingcompany doesn't allow me to upload more then 8MB. To be able to upload more MB's I did the following: I created a php.ini file and ...
2
votes
0answers
35 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
0
votes
0answers
9 views

Htaccess https 301 problem

Since 2 weeks I have installed an SSL certificate on my domain. I have changed my base urls to https so my canonical url is https now. But now I need to force to https. I did this with the below ...
0
votes
0answers
12 views

Adding a hash to a url in .htaccess

I am using a js hash listener to display a modal window if the /hash matches the id of the element. /brands/type/#name-of-product Works fine. However, default WP behavior will match any ...
0
votes
1answer
42 views

Admin-Ajax.php, SSL, Non-SSL

I have a WordPress site behind a reverse proxy. The site is over http, except the wp-admin area, which is under https. We don't have BasicAuth or anything running on top of the admin area. One of our ...
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 ...
0
votes
1answer
41 views

Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?

I want to restrict the uploads and only be visible to logged-in users. But the PDF's or images files always are visible and also to un-logged users. You can imagine that this WP would be completely ...
0
votes
0answers
18 views

My permalinks are not working on new server

I am going nuts trying to figure out the rewrite rule for a site that I am moving. I have an old server danceprarade.org/wp and I want to move it to a new server new.danceparade.org/ (no wp). I have ...
0
votes
2answers
29 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
49 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
15 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 ...
0
votes
2answers
23 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 ...
0
votes
1answer
12 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
32 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
22 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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
28 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
1answer
72 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 ...
0
votes
1answer
41 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
26 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
19 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?
0
votes
1answer
24 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
0answers
44 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
137 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 ...
0
votes
0answers
10 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 ...
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 ...
0
votes
1answer
79 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
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 ...
0
votes
3answers
55 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
37 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
0answers
16 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
1answer
34 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
0answers
33 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
79 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
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 ...
0
votes
0answers
9 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
21 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
53 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 ...
0
votes
0answers
48 views

htaccess url rewrite within WP installation

I want to use one of my subdomains to rewrite urls and finally forward to an origin extern domain. Example: goto.mydomain.com/1saKCA3 -> externdomain.com/1saKCA3 I already tried to implement the ...
0
votes
0answers
17 views

Create custom Rewrite Rule

Hi I'm trying to create simple multilingual plugin. For that I need to create RewriteRule, for example. example.com/fr/post1 or example.com/post1 How do I achieve this?
0
votes
1answer
14 views

Wordpress permalinks confusion

I have just realised something that I never knew and I wanted to get confirmation that it is expected behaviour or whether the website I am working was behaving incorrectly. I creating a page - lets ...
0
votes
2answers
52 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
73 views

Working with Reverse Proxies and Multisite Installation

We have a wordpress multi site, the main site has a URL similar to mainsite.com Each of the sub sites have a URL such as subdomain1.mainsite.com, subdomain2.mainsite.com etc Each of the sub sites we ...
0
votes
0answers
72 views

Redirecting .aspx URL to a wordpress site page

A friend of mine have an existing site built in .NET, all the pages have .aspx in url on that site. Now we want to convert that whole website into WordPress. But the problem is that we don't want to ...
0
votes
0answers
92 views

Custom post type permalinks non working on wp 4.0

When I updated to WordPress v4.0 it removed all of my custom post type permalinks and replaced them with "/". I have 2 custom post types: "Business" and "Coupon". The permalink settings for Business ...
0
votes
0answers
41 views

Convert from .htaccess to web.config?

When I convert to web.config. It shows an error: <rewrite> <!--This directive was not converted because it is not supported by IIS: RewriteBase /.--> <rules> <rule ...
0
votes
0answers
38 views

how to rewrite folder name in url to another name

I am wondering wether it's possible to use Apaches .htaccess to rewrite a folder name - using a WordPress function. Lets say I have a url like: http://example.com/folder1/folder2/page.php Now I ...
0
votes
0answers
15 views

Rewrite blog at the beggining of my URL

So I uploaded a WP blog and I want to redirect ALL requests to my website (for example mysite.com) to blog.mysite.com with .htaccess. I've searched Google day and night to find a way to rewrite ...
0
votes
1answer
77 views

add_rewrite_rule on multisite doesn't work

I define a rewrite rule on an init hook like: add_rewrite_rule( 'foobar/(abc|def|ghi)/(.+)(/(\d.+))', 'index.php?my_action=$matches[1]&my_name=$matches[2]&my_version=$matches[4]', 'top'); ...