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

Cannot Override Wordpress 404 for a Sub-Directory

I have wordpress installed on my root (/var/www/html) and I have a sub-directory in the root as /var/www/html/manage Both directories have it's own .htaccess files. Content of the .htaccess are as ...
0
votes
2answers
13 views

Move Wordpress to subdirectory, keep ALL URLs

I currently have a website at site.com and have WordPress installed in me website's root folder. My website includes pages like: site.com site.com/page site.com/2015/10/01/post.... site.com/login ...
2
votes
0answers
22 views

WordPress Multisite Login Access

I have a multisite installation and use an .htaccess directive to close access to wp-login.php. <files wp-login.php> errordocument 403 http://example.com/restricted/ order deny,allow deny from ...
0
votes
0answers
11 views

password protected problem with register

I wanna use from password protect directory (with .htaccess ) in my admin pages. but in user registration page I see a alert for user and password autorazation ( same autorazation that created for ...
0
votes
0answers
22 views

How to make wp-login.php and wp-admin not accessible

Hello guys I wanted to limit my LOGIN and WP-ADMIN without using plugins. I have a network (multi-site): I have done so: wp-config.php define('WP_ADMIN_DIR', 'controlpanel'); define( ...
0
votes
0answers
20 views

500 Internal Error appears after adding the codes in .htaccess file

The issue is: I have a Wordpress site running on 4.3 and using the theme from Envato Market (POND v2.0). And I ran a SEO test using this website (SEO Checkup Test). After going through the tips on ...
0
votes
2answers
15 views

insert_with_markers() WordPress & htaccess help

I'm trying to develop a plugin which adds a single line to the .htaccess file generated by WordPress. The problem is that one of the WP generated lines override my rule, and via the ...
0
votes
1answer
19 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
0
votes
1answer
11 views

I can access subdirectory, but not files within it

I want to first point out that I have tried to solutions listed in this post and in every case it either hasn't worked or hasn't been appropriate for what I'm trying to do. I have tried several ...
1
vote
1answer
20 views

Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs

I seemingly to have a strange issue I have found in almost every other Wordpress site. Suppose, you have set your Blog home to a static WP page /myhome. And you have a separate page for blog /blog. ...
0
votes
1answer
66 views

Pretty permalinks (again)

I'm trying to enable pretty permalinks in my WordPress site. But every time I try to change to any permalink option besides default the links to the posts go to 404. If I change it back, it works ok. ...
0
votes
0answers
8 views

Give 404 error on links and on forums links

I am working on the site where except home page every other page gives error on links (Not for default).I installed the bbpress and its generates links like this ...
0
votes
0answers
54 views

Add custom parameter to permalinks

I have a WordPress page that I would like to use SEO friendly query parameters with. Let's say this wordpress page is accessible by going to http://www.example.com/test and its short URL is ...
1
vote
1answer
33 views

.htaccess Security Header Rules

I have a self-hosted Wordpress installation on a Linux system and there are a lot of modifications such as blacklisting and path rewrites and so on that is done within the .htaccess file that all work ...
0
votes
0answers
14 views

Can I use the same permalink base for Categories and Posts?

I am migrating our site from another CMS and the way the permalinks were setup with the prevous CMS are like this: posts: /news/%year%/%monthnum%/%day%/%postname%/ categories: ...
0
votes
1answer
11 views

Site not displaying correctly when re-directing from root to sub-directory

I've created a WordPress version of our site in a subdirectory on our server and wish to re-direct from the root to the subdirectory, like: mydomain.net to mydomain.net/wordpress For some reason, ...
0
votes
1answer
23 views

Add ReWrite from Old Pages to Wordpress (remove .php)

I have a WordPress site that has 4 old .php pages left to run as is. My issue is previous there was a rewrite rule to remove the .php from the URL giving it clean URLs. I tried just adding the same ...
0
votes
1answer
36 views

Wordpress rewrite rules not working

I have created a plugin and i have gotten rewrite rules to work using my .htaccess file. I would like to make this work from my plugin instead to keep everything contained from within there. Im ...
0
votes
0answers
21 views

.htaccess for a Wordpress subdomain

I have an issue with a Wordpress website and the .htaccess. I have moved the site to a subdomain (e.g. wordpress.website.com). All the files have been moved, and the databased has been moved and ...
0
votes
0answers
10 views

What to do after a wrong RewriteRule?

I have A Wordpress MU and following this answer I changed my root .htaccess placing this before the Wordpress loop RewriteRule / /subfolder [R=301,L] trying to have a different homepage. It didn't ...
0
votes
0answers
19 views

allow access to a sub-directory of static html pages to logged in users only

I have a membership site where members have access to view a set of static html pages. Therefore, I wish to place a folder of static html pages that can only be viewed by logged in users. My current ...
0
votes
0answers
32 views

Creating a URL re-write rule on Ngix causes re-direct loop with wp-admin

I have a Wordpress site hosted on Nginx by WP Engine. Currently it resolves requests to URLs either with or without a trailing slash. So, both of these URLs are functional: mysite.com/single-post ...
0
votes
0answers
27 views

Adding url redirect in .htaccess

I have some links like www.site.com/index.php?pg=portfolio-website&pageid=1 www.site.com/index.php?pg=portfolio-website&pageid=2 www.site.com.com/index.php?pg=portfolio-website&pageid=3 ...
0
votes
0answers
18 views

All in one wp security breaked my /wp-admin

After installing the plugin all in one wp security, now we can't access to the wp-admin, we get redirected to 127.0.0.1, I checked on the .htaccess for clues and found this: # BEGIN All In One WP ...
0
votes
0answers
44 views

How to rewrite a URL for a domain resolving to a sub-folder containing a WordPress install?

I'm having the following dilemma with WordPress: We are hosting several sites under one hosting plan (GoDaddy Deluxe Hosting) and using the "Hosted Domain" feature, which makes domains resolve to an ...
0
votes
3answers
40 views

Permalinks - .htaccess

According to the official WordPress docs, when you save your Permalinks it updates your .htaccess file (https://codex.wordpress.org/Settings_Permalinks_Screen). However, when I make Permalink changes ...
1
vote
1answer
916 views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as ...
0
votes
0answers
18 views

Block host access via theme files?

so I have been reading up on analytics spam and have been looking for a way of dealing with it across multiple wordpress sites I run. The best solution seems to be to block the hostname via my ...
1
vote
1answer
51 views

Change wp-content without changing the name of the folder

This does not work # BEGIN WordPress <IfModule mod_rewrite.c> RewriteRule ^/index\.php$ - [L] RewriteRule ^/css/(.*) /wp-content/themes/themename/css/$1 [QSA,L] RewriteRule ^/js/(.*) ...
0
votes
0answers
20 views

ModRewrite not working properly

I am experiencing issues with modrewrite and RewriteRule. Have a look at my .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond ...
0
votes
0answers
22 views

How do I add files into a new folder and keep wordpress page /slug/?

We needed a sub-site on our domain so it would look like domain.com/newsite Due to the instructions of a technician looking after the server, I made a new subsite under my wordpress site by the ...
0
votes
1answer
30 views

Htaccess Rewrite

I've a question about htaccess file... I'm configuring a website and all it works fine, except when I change htaccess file. Every time which I refresh the page, wordpress define the default htaccess: ...
1
vote
0answers
17 views

Conflict with Force SSL and Rewrite Rules

A site I'm working on has two security-related requirements which I've been unsuccessful in solving simultaneously. I can satisfy each requirement BY ITSELF, but I'm running into problems satisfying ...
0
votes
1answer
43 views

htaccess doesn't cache my latest news when logout

To speed up my website i'm using w3 total cache and some htaccess . . . it works just amazingly ! Otherwise, big problem, I have on my homepage the latest news being display, when I'm login, it ...
0
votes
1answer
46 views

Permalink for specific page name

I create a new page with post name is 'my-page'. I also have 2 custom query strings. So, the URL will be like: http://domain.com/my-page/?qst1=aaa&qst2=bbb I want the URL like: ...
0
votes
1answer
59 views

.htaccess password protect all but one page

Hi I would like to password protect my entire Wordpress site using .htaccess. All pages except one page which would be viewable to the public. I know there are other methods out there built into ...
0
votes
1answer
70 views

How to modify the .htaccess to force ssl on login and admin pages

I have the following code to force ssl on the login and admin pages via the .htaccess on a the domain example.com <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ...
1
vote
3answers
178 views

Move wordpress to folder without changing urls

I have an old wordpress installation in root of my website with the following structure: / shows a simple intro /blog lists blog posts /13**/**/**/* shows a specific post (permalink) /contact /about ...
0
votes
0answers
24 views

Protect Uploads if user is not logged in, but avoid images

I have a situation here, where I want to restrict users for view/download media files (except Images). I am currently using method define in this thread How to Protect Uploads, if User is not Logged ...
0
votes
0answers
48 views

Loading index.php contents which located outside blog folder for post single page

I'm creating blog page as WordPress for my static PHP website. When blog page URL changes to pretty permalink (example.com/blog/my-post-page), loading contents (not redirecting to index.php, only ...
0
votes
0answers
79 views

.htaccess is reverted to default anytime a page is loaded - subsite broken

I have some major problems with my multisite-install. 1) When i try to make changes in .htaccess to what the Codex says (http://bit.ly/1HtCLks), it changes back to the default .htaccess file as soon ...
0
votes
0answers
44 views

Subsite admin in redirect loop, resources on frontend are all 404 and .htaccess changes back

I have a Multisite with three sites. The main site isn't affected by any of this, but the subsites are both broken. 1) When accessing wp-admin on one of the subsites, I get a redirect loop. 2) When ...
0
votes
1answer
76 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
0
votes
0answers
24 views

htaccess workaround

I am developing a wordpress site in a subfolder for a client at peterpanos.com. His existing site (static html) is utiilizing the following htaccess script to switch to some kind of mobile ...
0
votes
1answer
27 views

htaccess old php pages to new wordpress ones

I'm redesigning a site and converting to wordpress. I want to redirect the old pages to the new ones. Also, wordpress is installed in a directory, but viewable as if it was in the root. So the ...
0
votes
0answers
90 views

Remove trailing slash after .html extension

my permalink settings are as follows: sitename/%postname%.html I have removed the trailing slash at the end. I am also using a plugin called "Remove slug from custom post type" to remove the custom ...
0
votes
0answers
29 views

After move to new host, site works but login fails

I moved a wordpress installation I "inherited" to a new host without too much issue. The folder structure remained identical, and once I changed the db connection information, the website displays ...
0
votes
2answers
131 views

How to protect htaccess so it can't be overwritten?

I'm having a problem where Wordpress is periodically and randomly destroying the htaccess file and setting it to zero bytes. When it does this, the site of course breaks until permalinks are manually ...
0
votes
0answers
97 views

custom permalinks do not work: page not found

I am developing my website in local with wamp server and wordpress i am using a w7 OS and running wamp server with apache and my sql. I have a problem with permalinks. So far, i developed the pages ...
0
votes
1answer
601 views

Block access to wp-admin

I'm attempting to use a .htaccess file to block access to the wp-admin folder. I've read through the Brute Force Attacks doc (https://codex.wordpress.org/Brute_Force_Attacks) and I've added the block ...