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
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
72 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
9 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
50 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
0answers
97 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" ...
0
votes
0answers
96 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 ...
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 ...
1
vote
1answer
64 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 ...
1
vote
1answer
44 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
64 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
0answers
111 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
45 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
95 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
54 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
47 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
160 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
28 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
59 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
51 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
36 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
104 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
479 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
71 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
58 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
109 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
83 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
155 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
68 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
79 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
90 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
76 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
82 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
104 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
33 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
167 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
235 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: ...
0
votes
1answer
24 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
70 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
65 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
42 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 ...