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
37 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
63 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
33 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
56 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
20 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
63 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
20 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
1answer
280 views

Redirect A URL Pattern In WordPress Using .htaccess

I am new to WordPress and just converted from Blogger to WordPress. Now as you know that Blogger URLs are too different from WordPress URLs so after migrating I started receiving 404 error in Google ...
3
votes
3answers
75k views

Default .htaccess file for wordpress?

My .htaccess files are intercepting with WordPress' .htaccess file, which modules and which settings (specified by .htaccess) are required for WordPress site to work? In other words, where can I find ...
0
votes
2answers
96 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
2answers
5k views

How to disable the default WordPress redirect to non-www URLs?

I am trying to redirect all non-www to www URLs in my WordPress MultiSite install. I am using a simple .htaccess rule like this: # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] ...
0
votes
0answers
60 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
247 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
2k views

mod-rewrite exception? keep #hash in matching urls?

Hey guys, My WordPress permalink structure is set to `/%postname%/. When I create a page with a name "FAQs" the permalink generated is "mydomain.com/faqs". When I link to this page in my code ...
0
votes
1answer
29 views

Error message on blog posts only on my local environment [closed]

I copied all my WP files from the server to my local WAMP as a dev-environment. Everything works smoothly except when viewing a blog post. I get a good output of all the ...
0
votes
2answers
41 views

How to customize sub-URLs in a wordpress website (.htaccess)

I have a regular business website that I built on Wordpress - www.example.com I have a blog page in my website under - www.example.com/blog When viewing a blog post it looks like this: ...
4
votes
2answers
41 views

Having a custom post slug that clashes with an existing directory

I'm currently transitioning a website from their existing CMS to WordPress. I have a custom post type of 'Episodes', with a URL of myurl.com/episodes/ There is also an existing directory at ...
0
votes
1answer
17 views

Proper way to set up rewrite with Wp

This seems to be modding my .htaccess with every page view. What is the standard way of setting up a rewrite? This is what I have so far: if(!function_exists('some_rewrite')){ add_action( 'init', ...
0
votes
2answers
201 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
0answers
43 views

Subdomain redirecting to WP-Login with SSL

Wordpress is installed in the root on my server and i have a subdomain/folder with another application separate from wordpress. When I try to access it via HTTPS: //subdomain/admin it redirects to my ...
0
votes
0answers
116 views

URL masking of subdomain to main domain using .htaccess

I am facing with the following technical challenge : We have a main website running on wordpress with content in local language (Greek) on the domain www.adomain.gr We want to set up a second website ...
0
votes
1answer
417 views

multisite 404 error for subdirectory

I am attempting to create a multisite as a subdirectory and I have followed the network instructions to the 'T'. The multisite seems to be set up correctly, the .htaccess and wp-config.php files seem ...
0
votes
2answers
51 views

Fresh wordpress installation in sub-directory not accessible

I install fresh installation of wordpress in my server sub-folder call blog. So in the beginning I access the site mydomain/blog and it works perfectly. But when I changed the permalinks settings ...
2
votes
2answers
240 views

different child theme for subdomain

I've got a site that I'm trying figure out how to apply different child themes to based on a subdomain. Applying the child themes shouldn't be difficult, it's more the .htaccess magic that I'm a bit ...
0
votes
1answer
56 views

Custom permalink structure with %postname% in front of domain name

We are running a software review website, and we have a very large amount of reviews currently done, and we would like to restructure if its at all possible. I would like to know if there's a chance ...
0
votes
1answer
20 views

Have subdirectory name act as $_GET or $_POST data

I have a page with a list of items that I want to have my users cycle through without a page load happening between each item. This works. However, I also want each item to have it's own URL. I'm ...
0
votes
0answers
69 views

How to properly force https and www on multisite

I have a wordpress multisite in network mode via wp multi network plugin. I've been trying to use .htaccess rules to force all urls to be https://www. eg: https://domain.com to ...
0
votes
1answer
66 views

Error:406 not acceptable

I have a wodpress site, and I have submitted it to google webmaster tools. When I search on google by my site name, the results come, and on clicking the searched result, I can open the website on my ...
0
votes
2answers
113 views

Redirect homepage /page/1/ to /blog/page/1/

After switching from the homepage displaying latest blog posts on urls /page/1/ /page/2/ etc to a static front page with the posts displayed on /blog/page/1/ we would like to redirect the original ...
0
votes
2answers
36 views

Configuring Home Page Address

I though this was a simple issue. When i type in the browser: www.example.com it changes to: www.example.com/home/ This delivers the proper contents from the Home page, but i wish to stay showing ...
0
votes
1answer
207 views

Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file

I have successfully blocked access to a folder directory outside of WordPress based on user cookies using the following code in the .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
1answer
79 views

Pagination problems with multiple custom post type archive pages

I'm at the end of my tether now. Really need some help! Here's the setup... I have 2 custom post types in my functions.php: // Register the events post type function events() { $labels = array( ...
0
votes
2answers
113 views

How can I create a private site that is inaccessible from the outside?

I need a safe place where I can store data about projects that I am working on. This data includes text and files (pictures, sound and video). I want to create a private "blog" for this purpouse that ...
0
votes
3answers
224 views

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? ...
0
votes
1answer
55 views

Multisite, different domains, optional subdirectory, and htaccess

Here's the situation: Configuration I have a WordPress multisite setup where different sites are on different domains. Some of those sites are contained in a subfolder in their domain, some are not. ...
0
votes
0answers
39 views

Wordpress Apache Redirect URL to another .htaccess

Hi I renamed the site Permalink: http://www.adress.com/tutorial/faq/ to Permalink: http://www.adress.com/tutorial/start/ in the Wordpress Edit Page Menu. Now the URL ...
0
votes
1answer
22 views

How Can I Use a Custom AccessFileName?

I have a need to have a custom AccessFileName setting in my virtual hosts, however it appears that save_mod_rewrite_rules function assumes that .htaccess is the name for everyone. How can I override ...
0
votes
0answers
147 views

Wordpress Polylang - Use same url slug on different languages [closed]

Just like this topic, I'm trying to create two pages with the same url, like this: domain.com/pt/downloads domain.com/en/downloads But it seems like polylang doesn't support this. Is there ...
0
votes
2answers
191 views

301 Redirect Loop

I have wordpress site hosted on openshift say example.com. I am redirecting example.com to www.example.com (non www to www). I have created alias for www and non www version and updated my cname with ...
1
vote
0answers
18 views

Dissolve Multisite while making site #5 the main site?

I have a very unique situation, I was also unable to find a solution, but perhaps someone else has experienced something like this before. A client of mine has a multisite set up, however they now ...
0
votes
0answers
345 views

removing index.php IIS 7.5 webconfig

I would like to remove index.php from my permalink. I am using Codeigniter website. I have passed the requirements to use pretty permalink: -PHP Version 5.4.27 Codeigniter -IIS 7.5 -URL Rewrite 2.0 ...
4
votes
1answer
154 views

Combining Multiple Taxonomies in one URL

I'm creating a complex site with a product catalog with two custom taxonomies. They are Brands and Types. Brands - Canon - Toshiba - HP Types - Printers - Scanners - Multifunction I need a page ...
0
votes
1answer
67 views

Wordpress overrides custom 404 page with it's own

I want to create a custom 404 page, but I cannot seem to override the 404 which is in Wordpress itself. The reason I want a custom 404 page is that if I get 404 within my subdirectories I get directed ...
0
votes
3answers
187 views

Rewrite URL in address bar for a specific page [closed]

My client has purchased a new "vanity" domain name that they want to use to forward peoplle to a specific page I've set up on their wordpress site. I've set up web forwarding on the new domain so ...
0
votes
1answer
124 views

404 not working on main site on multisite

I currently have two sites(main site and sub site) created with multisite function. Recently, i noticed that the 404 error page seems not to work on main site. No matter what error url i type to test ...
0
votes
1answer
28 views

Do rewrites added with add_rewrite_rule() persist after plugin deletion?

I am developing a Wordpress plugin and need to ad a rewrite url using add_rewrite_rule(). That does work. But what happens when my plugin is deleted? Does Wordpress cleanup the htaccess or do I need ...
0
votes
0answers
106 views

.htaccess 301 redirect conflict with plugin “Wordpress Https”

I am using WordPress 4.1.1 and the Avada Theme on one of my websites and just recently decided to go with an SSL certificate. I got everything working with the help of "WordPress Https" plugin until ...
0
votes
1answer
47 views

Duplicate WordPress site to subdirectory but use same db?

I have tried to just copy the whole root folder into a subdirectory. I understand the .htaccess file has to be changed. But can't get it to work right. Is it something more than changing the htaccess ...
0
votes
1answer
30 views

Allow arbitrary text after page URL

I'm trying to add a page that is able to display different information from a database based on the URL. http://example.com/page/ retrieves the page. I want ...