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)

2
votes
1answer
17 views

Prevent users from browsing through the media galleries

I just realized that when I go to http://www.detroitjewishdirectory.com/event/chanukah-wonderland/chanukah-2014-activities/ I am able to browse through a lot of the images that are in my media folder. ...
0
votes
0answers
11 views

OC under Wordpress - validation

i have installed opencart(oc) under wordpress(wp), i.e., root(here is wp), root\eshop(here is oc). The problems comes once i set seo-friendly url in OC. In wp a custom link is created to refer to oc ...
0
votes
1answer
38 views

.htaccess for wordpress in separate folder

I'm working on a really odd site which has a couple of Magento installs next to a Wordpress install. the folder structure looks like this: /shop (magento) /shop-world (magento) /wp .htaccess I ...
0
votes
2answers
545 views

How to watermark wordpress images from wp-content/uploads folder with htaccess and php?

I have a Wordpress website, due to some limits i need to have originals of the photo at the serverside, but watermarked ones on a frontend and with direct opening of the photos. I'm using Frontend ...
0
votes
0answers
66 views

Image Expires Headers Not Working

I want to implement image expires header, in my wordpress site I tried this code in htaccess <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpg "access plus 1 month" ...
1
vote
2answers
2k views

How Do I Programmatically Force Custom Permalinks with My Theme?

I'm making a custom theme. It's a highly specialized theme to make WordPress into like an application rather than a CMS system or blog. For instance, a Dental Office Scheduling System (with CMS and ...
2
votes
2answers
87 views

Which ways can be used to log in to Wordpress?

FYI: This has been also posted here since I'm fairly new to this website and didn't know that the Wordpress part existed. Sorry for the repost. I'm currently trying to tighten the security for a ...
3
votes
3answers
13k views

Force HTTPS using .htaccess - stuck in redirect loop

My Wordpress website is located at example.com/wordpress and I need everything inside to be accessible only using SSL. I've created a .htaccess rule that redirects http -> https: RewriteEngine On ...
0
votes
0answers
79 views

How to hide theme and plugin directory from page source using htacces?

I am using WordPress latest version. Theme name and some plugins name are showing in page source. I don't want to allow visitor to access the information for security reasons. I want to hide the ...
1
vote
1answer
33 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 ...
1
vote
1answer
53 views

WP site URL changed to have HTTPS but still homepage does not redirect

I've changed the WP site URL to include https://www & it's been a while. Entire site is correctly reflecting it. But unless I add following in .htaccess, the home page does not redirect ...
6
votes
5answers
6k views

Use a different domain for SSL

long time lurker - first time poster. A client of mine has a website developed in CakePHP, and a wordpress blog installed in the /blog/ directory. Let's say the url of the main domain is ...
2
votes
2answers
6k views

How to stop wordpress from changing default .htaccess permissions to 444

I installed my website using an installer - fantastico for a quick install. Just a few days ago, I started getting a weird error in w3tc plugin and it would ask me to update via ftp as you can see ...
1
vote
1answer
36 views

HTTP sitewide, except for: wp-admin, and 2 custom directories

I've tested various snippets in order to achieve the following, but with no success. I don't want to set the whole site to HTTPS at the moment, only 2 specific pages: .org.uk/directoryA/directoryB/ ...
0
votes
0answers
55 views

Rewrite.php .htaccess generating external rewriterule for a different domain

I've been searching the web for a bit now and have not found a clear answer to this question. How can I modify rewrite.php so that when .htaccess is regenerated it creates rewrite rules for an ...
1
vote
2answers
33 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 ...
1
vote
0answers
86 views

Multisite theme path rewrite using .htaccess

I'm trying to rewrite the theme path for multiple domains (wordpresss multisite) using separate themes, this is my current .htaccess file, this is allowing each site to use seperate CSS files but not ...
0
votes
1answer
34 views

How To Change the URL of a WordPress Multisite

I'm attempting to pull down and set up a live Multisite in my local dev environment to perform theme updates and fixes before reuploading and publishing the changes. The main site works fine using ...
0
votes
0answers
67 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 ...
0
votes
0answers
36 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 ...
0
votes
1answer
119 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 ...
0
votes
1answer
20 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
2answers
696 views

Can't access WP site over WiFi network

I'm making a mobile site and I'm using the main computers IP adress to connect to it from the iphone 10.0.0.1/wp With normal sites it works fine, but the WP site I get is stripped from CSS, JS, and ...
0
votes
0answers
49 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 ...
1
vote
1answer
189 views

Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect

I have recently added the 301 redirect non-WWW to WWW on .htaccess for my current running blog multisite (Wordpress blog resides under "mysite.com/home/" directory), they seem to work fine after all ...
0
votes
0answers
41 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
30 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
74 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
2k 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 ...
0
votes
2answers
322 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
2answers
704 views

Wordpress installed in root, need second in subdirectory with different domain

God, this little problem drives me crazy and I really hope that you'll help me how to figure it out. I searched over all previous threads and in the codex of wordpress, I find some close situations ...
0
votes
2answers
59 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
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
1answer
41 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
1answer
902 views

Rewriting search permalink

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
0
votes
2answers
67 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 ...
0
votes
0answers
18 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
117 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
1answer
53 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 ...
0
votes
2answers
55 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
67 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 ...
13
votes
2answers
7k views

How to create custom 401, 403 and 500 error pages?

When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article. My aim is to create custom error pages ...
0
votes
3answers
46 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
67 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
93 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. ...
1
vote
1answer
367 views

Need help rebuilding lost htaccess file

I originally posted this on Stack Overflow (7 months ago). I didn't receive any answers and was not in a position to pursue it further. As of now I am working on resolving this, and would greatly ...
3
votes
4answers
3k views

How to remove category from wordpress url?

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have ...
0
votes
0answers
28 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 ...
1
vote
1answer
151 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 ...