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)

1
vote
0answers
13 views

Locked out of admin and some pictures don't show after failed SSL installation

in a bit of a pickle here as I'm not sure what has caused the issue so hopefully somebody here can help me. So I purchased the SSL certificate and but the folder with the files in onto my website. I ...
3
votes
1answer
86 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
57 views

WP .htaccess to ignore files outside folder

I am using cPanel, and in my /public_html folder I have installed WordPress. Other subdomains are added in the same /public_html where WordPress is installed, e.g. /public_html/folder, ...
0
votes
1answer
82 views

Override 404 page with htaccess

I currently have a 404.php page from a certain theme I'm using but I would like to override any WP foncutionaly regarding 404 errors. I would like to set a 404 error handler via my .htaccess but for ...
2
votes
2answers
1k views

301 redirect not working through .htaccess

I found this little trick http://css-tricks.com/snippets/htaccess/301-redirects/ to redirect my old Wordpress domain to my new domain with the path included. I run a test on my local copy and ...
0
votes
0answers
34 views

Multisite /files/ URLs broken after server move

The file urls of all sub sites in my multisite install have stopped working after moving to a new server. The move was a straight site clone from WHM to WHM, so nothing has changed really. The new ...
0
votes
1answer
55 views

Overwrite Wordpress's URL rewrite not working

What I'm trying to do it's pretty much simple, but it's not working and I don't know if it's a Wordpress rewrite or I'm just doing it wrong. What I have is this url: ...
0
votes
0answers
31 views

How can I write the following URL in wordpress

I am working on a project, and one of the biggest parameters was that we keep existing data and URL structures intact. the decision was made long before me to switch from an old, crappy codeignitor ...
0
votes
0answers
81 views

url redirect to another url whilst keeping original url

I have a wordpress site (mysite.co.uk). I also have another add-on domain (mysite.fr) pointing to the wordpress site root. I have pointed this domain (mysite.fr) to this page - ...
0
votes
0answers
13 views

SSL doesn't deliver parts of Wordpress Administration Module

I have a very strange problem in my website. Let me figure it out: Firstly I have an SSL website https://example.com when I log in into /wp-admin i can't see some features like my Media Library or my ...
0
votes
1answer
25 views

Ignore postname in permalink

I want to set my permalink as: www.example.com/category/postid/postname But I want WordPress to ignore the post name at the end, because I may change it later. How can I do it with .htaccess, or ...
0
votes
1answer
10 views

Installing wordpress on subdirectory 2 levels down

An unusual one for you and I appreciate how ridiculous this set up sounds but It's currently what I've got to work with so here we go... I have a joomla website set up on www.myjoomlasite.com. I am ...
2
votes
1answer
18 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
12 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
52 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
627 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
111 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
93 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
14k 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
101 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
52 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
72 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 ...
4
votes
2answers
8k 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
46 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
65 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 ...
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 ...
1
vote
0answers
122 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
48 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
104 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
65 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
176 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
33 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
768 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
64 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
194 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
58 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
37 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
111 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
3k 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
532 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
915 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
75 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
63 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
946 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
129 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
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 ...