Tagged Questions

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
9 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
6 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 ...
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 ...
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
1answer
35 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
18 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
11 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?
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
0answers
25 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
15 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
45 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
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 ...
1
vote
1answer
79 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
48 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
29 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
44 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
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
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
1answer
27 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
27 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
36 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
37 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
24 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
38 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
15 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
12 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
40 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
54 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
48 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
76 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
26 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
32 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
14 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
62 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'); ...
0
votes
2answers
77 views

Debugging a redirect loop affecting only certain pages

I am trying to fix a site which has several redirects that seem to have been added via a plugin called Peters plugin redirect. The plugin has since been deactivated and delated but the redirects loop ...
0
votes
0answers
12 views

permalink problem in my .htaccess page

Please give me a suggestion for my question. when we set permalink in our site then the .htaccess code is RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
26 views

Wordpress login bug. Need an emergency solution

I need emergency solution. I can’t login in to my wordpress site. After giving username and password it redirects to site/wp-login.php and shows a blank page. It does not take to the dashboard. I have ...
1
vote
1answer
27 views

How to hide that a certain non-Wordpress directory exists on the server?

I'm very much a newcomer to Wordpress and to this site, so I apologize if this is easy or addressed elsewhere. I have a WP 4.0 site, using a naked domain http://example.com, with the WP installation ...
4
votes
1answer
168 views

Securing wp-admin folder - Purpose? Importance?

I am trying to understand how to secure a WordPress site. One security task I do not understand is...How important is it to protect the "wp-admin folder"? For example, I would consider limit login ...
2
votes
2answers
47 views

different child theme for subdomain

I've got a site that I'm trying figure out how to apply different child themes to based on a subdomain. Applying the child themes shouldn't be difficult, it's more the .htaccess magic that I'm a bit ...
0
votes
0answers
81 views

.htaccess wp mod_rewrite causing error 500 on subdomain which does not run wp

My website www.vegmomos.com is running on WP and my subdomain publisher.vegmomos.com is not running WP. The htaccess has following WP code: # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
0answers
33 views

Wordpress overrides custom 404 page with it's own

I want to create a custom 404 page, but I cannot seem to override the 404 which is in Wordpress itself. The reason I want a custom 404 page is that if I get 404 within my subdirectories I get directed ...
0
votes
1answer
43 views

Change root directory

I would like to change the root directory of my website from the 'e' folder (http://www.domainname.com/e) to 'wp' folder(http://www.domainname.com/wp). How do I go about this using the .htaccess file? ...
0
votes
0answers
31 views

.htaccess restrict subdomain by IP - Wordpress Multisite

I'd like to redirect traffic away from a subdomain install of Wordpress Multisite unless it's coming from a specific IP address/range, and without affecting the root domain traffic. Is this possible? ...
0
votes
1answer
34 views

different CNAME to corresponding subfolders

I have three wordpress websites hosted on Apache server in three different subfolders, like www.mydomain.com/sub1;www.mydomain.com/sub2;www.mydomain.com/sub3 Now, I have three new domain names ...