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

Allow arbitrary text after page URL

I'm trying to add a page that is able to display different information from a database based on the URL. http://example.com/page/ retrieves the page. I want ...
0
votes
0answers
19 views

Redirect non-www to www with file links [closed]

My website is using WordPress 4.1.1, multisite, subdomain install. I've changed it from non-www to www successfully after updating the database ( ...
0
votes
0answers
31 views

View file but prevent from DIRECT URL ACCESS?

wordpress root folder .htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?SOMEIP [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?SOMEIP.*$ [NC] RewriteRule \.(pdf)$ denied.php ...
0
votes
1answer
23 views

Wordpress Page Not Found if Permalink Settings is Postname

Uploaded code on staging server. in localhost everything is working well but on staging I can login to admin pabel but can not see any page on frontend. When any page is accessed it says The requested ...
0
votes
0answers
22 views

404 Page not found error - what messed up the permalinks?

Today I encountered an interesting problem on one of my WP blogs. Everything was working fine, until URL broke. The main page was loading correctly, as well as the admin dashboard. The problem was ...
0
votes
1answer
43 views

Redirect Image Url to a page via htaccess

I am trying to redirect Image Urls to a page. I have used 301 Redirection plugin, but that doesn't seem to work. For ex : http://mywebsite.com/wp-content/uploads/2015/02/Contestant-11.jpg should ...
0
votes
0answers
18 views

ReDirect subfolder link to another sub-folder and force SSL

My wordpress is installed in a subfolder, for example: test, so my urls look like http://example.com/test/product/buy-product-a/ etc.. Now I have installed another wordpress in subfolder, for ...
0
votes
0answers
26 views

Custom Taxonomy/Post Type permalink rewrite

I am trying to rewrite my permalinks to make them flow better, but the permalinks keep throwing a 404 not found. Original permalink structure: example.com/video/chapter1 Re-written permalink ...
1
vote
1answer
60 views

Custom url for a single page

Created a page and the link is like the following http://www.demo.com/?page_id=1081 need to be like the following http://www.demo.com/phones I need this structure only for this page .So i don't ...
0
votes
0answers
102 views

Getting a 500 internal server error ONLY on wp-admin/options-permalink.php

I have access to the admin panel, and everything works fine. I can click settings->reading and change anything I want to. But if I click settings->permalinks I get a 500 internal server error. Here's ...
0
votes
0answers
33 views

Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file

I have successfully blocked access to a folder directory outside of WordPress based on user cookies using the following code in the .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
1answer
12 views

When using number in url it is redircting to same page but when using character it redirects to 404

I have a website e.g abc.com in wordpress, when I enter any url like abc.com/blog/1232132 then it is redirecting to the same url and showing the content of abc.com/blog but when I am using urls like ...
0
votes
0answers
44 views

Protect wp-admin folder with .htaccess get 500 internal server error

I want to protect the wp-admin folder with .htaccess and .htpasswd, but if i enter the username and password i get 500 internal server error. The .htaccess file is located in /wp-admin/ folder. The ...
0
votes
0answers
44 views

How can I remove subdirectory folder from wp-admin urls?

I have the following root file structure: |-- composer.json |-- composer.lock |-- index.html |-- index.php |-- vendor | |-- autoload.php | |-- composer | `-- fancyguy |-- wp | |-- index.php | ...
0
votes
1answer
48 views

Fully mask *all* traces of WordPress installation subdirectory?

As can be seen in this dem0site.net (which has been installed to its own subdirectory (public_html/wp-org-01/), I have successfully followed the Codex instructions for "giving WordPress its own ...
0
votes
1answer
39 views

Custom rewrite rules are sending everything to index.php

I'm creating a site where users work together on teams to create films. Currently, I'm setting up an edit page on the front end for team managers. I've just got a simple isset() check on a query var ...
1
vote
0answers
64 views

mod_rewrite doesn't work as I want even with JSON API Plugin disabled

I've been asked to upgrade the codebase of a Wordpress website, which exposes a small set of APIs using JSON API plugin. The Wordpress installation is not in the root, but in a secondary folder: ...
0
votes
1answer
40 views

Wordpress On subfolder

We are running WordPress and CodeIgniter in the same domain, separated by subfolders. We know it's not the best practice, but CodeIgniter will be a temporary thing until we fully move to WordPress. I ...
0
votes
1answer
45 views

Need to edit htaccess while moving on Wordpress

I am moving my site from another CMS to WordPress. I currently have this .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /atoponwp/ RewriteRule ^index\.php$ - ...
0
votes
1answer
38 views

xammp server permalink by postname not working

I am able to access main page on localhost but not able to access page that I have added it display 404 error. my question is same as : ...
0
votes
0answers
34 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 ...
3
votes
1answer
149 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
26 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
44 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
113 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
245 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
56 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
22 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
35 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
145 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
27 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
35 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
24 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
67 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
28 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
18 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
33 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
186 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
86 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
62 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
20 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
26 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
125 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
55 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
382 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
14 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
131 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
144 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
32 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
73 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 ...