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

Removing or hiding slug/permalink from htaccess

I have this slug that i want to hide for SEO matters. My current slug is: homepage.com/company/companyname All i want is to be: homepage.com/companyname I tried lots for plugins and htaccess codes ...
2
votes
2answers
38 views

Redirect blogpage /blog/abcd/ to /blog/

I want to redirect the url if it contains the string like /blog/abcd.../ to blog listing page i.e. /blog page. I used a to code in htaccess file. Redirect 301 /blog/abcd http://www.example.com/blog ...
0
votes
0answers
74 views

Can I deny access(via .htaccess) to directory/file referenced in Customizer jQuery but still access from that code?

I realize this is probably a stupid question, but I'm unfamiliar with .htaccess code, so I'm not sure if this is possible or not. I have some code in the Custom Javascript section of my theme ...
1
vote
1answer
58 views

How do I host Wordpress on a hidden domain through a reverse proxy?

I have a reverse proxy for http://www.xxxx.com/guides/ pointing to Wordpress on another domain. I want to edit and administer it via the other domain, but I don't want the contents to be publicly ...
0
votes
1answer
207 views

htaccess and redirect to new url using regex

I have a hard time to create rewrite rule for a redirect using part of an old URL for WP. Example: Old URL: http://www.example.com/news/index.php/2014/11/07/my-blog-post-from-old-site or http://...
0
votes
1answer
40 views

htaccess conflict between Wordpress and password protected subdirectory

I have a wordpress install in the root directory but also have a directory called 'admin' which contains a PHP membership system. I couldn't initially access this directory as I kept getting a 404 on ...
0
votes
0answers
68 views

Loading WP post with AJAX in Fancybox with home in background on post URL visit

I'm developing a WP site where product thumbnails (post's featured image) are displayed on the homepage and when the user clicks on one of them, the post is loaded inside a Fancybox with AJAX. I want ...
0
votes
0answers
63 views

Custom Taxonomy Dynamic Slugs

I have two custom taxonomies named Cities and store-categories. i have following code for that register_taxonomy('cities',array('store-listings'), array( 'hierarchical' => true, 'labels' =&...
0
votes
0answers
42 views

Language part of website under construction .htaccess

I use in functions.php this code to make the English part of the website invisible for non-administrators (under construction) : add_filter( 'template_include', 'gdw_uc_template' ); function ...
0
votes
0answers
123 views

Mystery YSlow Add Expires Headers Test Fails — Only on Imported CSS Files

I'm analyzing my site for performance, using a number of tools, including the YSlow plugin. Its a big site with lots and lots of files. I've set up .htacess to add an appropriate "Expires" header. ...
0
votes
2answers
576 views

htaccess redirect from specific urls of my site to the homepage

I know, such a question has been asked and answered multiple times in the past before. However, as I tried out all the solutions I found online, it didn't solve my problem. The issue is that I have a ...
0
votes
0answers
16 views

Redirect permalink /%postname% to /%postname%.html [duplicate]

How to redirect /%postname% to /%postname%.html for Wordpress blog.
0
votes
0answers
15 views

htaccess command changes coding?

i've approached strange issue. My hosting admin block in cpanel changing php settings. While wordpress demand more than regular 64M of PHP memory, i had to switch php version. Admin gave me such ...
0
votes
2answers
78 views

.htaccess file changes disappear

This is what happens in a Wordpress (Woocommerce) site I've been asked to investigate. 1) I make a modification to .htaccess and save it. Here's output of the ls -command % ls -l ll -r--r--r-- 1 ...
0
votes
1answer
67 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
171 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 ...
3
votes
1answer
89 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
19 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
174 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
73 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
86 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
101 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
116 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
89 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
106 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
40 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 http://exapmle.com/xyz/forums/topic/it/...
0
votes
0answers
196 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 index.php?...
1
vote
1answer
325 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
23 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: /news/%...
0
votes
1answer
27 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
78 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
67 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
49 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
24 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
66 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
70 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
60 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
97 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
100 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
51 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
9k 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 style....
0
votes
0answers
27 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
180 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/(.*) /wp-...
0
votes
0answers
29 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
28 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
35 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
25 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
75 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
202 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: http://domain....
0
votes
1answer
142 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 ...