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
1answer
41 views

Restricting user login by IP address

I have a website that is login required in order for users to view the website. I have set up one user for all internal members to use to view the website, however i want to limit just that user to ...
0
votes
1answer
21 views

redirect 301 with special character like WIX site “#!”

i want migrate a WIX website to wordpress and i want preserve the SEO score without broken the url of every post-page. but the structure of WIX url is composed by special character like "#!" , now how ...
0
votes
0answers
19 views

Server errors after going live

I prepared the relaunch of our website from another CMS to WordPress. So, during the preparation, the installation was in a password-protected folder. Everything worked well. After going live (rename ...
2
votes
0answers
20 views

WordPress URL/Folder ReWrite using Htaccess

I am trying to mask certain folder in a WordPress installation using the Htaccess file. I am aware that there are plugins available to do exactly what I want but, I do not want to add even more ...
0
votes
0answers
5 views

Custom Htaccess Redirection [migrated]

I want to redirect my old site to new site via htaccess. There is a catch - I want custom redirect means 10 pages of old site to new site via url to url redirection. Url of 10 pages is same on new ...
1
vote
1answer
18 views

Specific URL Rewriting with parameters in wordpress

I'm rewriting a website that was originally in Drupal and has very specific URL's. So, I need to rewrite all the original URL's to the wordpress system + the parameters for my own-written plugins: I ...
0
votes
0answers
9 views

WP language variable after domain name

How in Wordpress Can I have a link Like "http://wordpress.dev**/en/**and-the-other-parts" I think it could be done with .htaccess but can't get It. Any Ideas?
0
votes
1answer
26 views

throttle/limit a logged in user's http requests to specific page on a per day basis

I have a resource on my WordPress page that I only want to show X times per day per logged in user. I'm using the twenty sixteen WordPress theme. Currently, Guests / visitors / non logged in users ...
0
votes
0answers
18 views

Use RewriteCond for add_rewrite_rule

Is there any way to add a custom RewriteCond in the htaccess using wordpress functions like add_rewrite_rule. I need to add this rule to wordpress. RewriteCond %{HTTP_HOST} ^(?!www)(.+)\.example\.com ...
0
votes
0answers
14 views

CORS header 'Access-Control-Allow-Origin' does not match “http://www.old-domain.com”

I am having problem on my website with SVG images. The website has been moved to public and i keep getting this error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the ...
0
votes
1answer
11 views

Redirect old .html URLs to a new installation in a subfolder

I have two WordPress installations, one under example.com and one under example.com/archive I want to achieve this: example.com/something/something/article.html has to redirect to example.com/...
0
votes
1answer
10 views

Htaccess remove dates from root site but not from subdomain

I have a site and a subdomain, so for example let's say: http://www.example.com http://store.example.com In my hosting the subdomain store is actually a folder on the root site. ON the main site, ...
2
votes
1answer
22 views

.htaccess for wordpress insde another wordpress

I have a main WordPress installation, with this (normal) .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
0answers
11 views

Wordpress multisite Force HTTPS and WWW for domain and only HTTPS for subdomains HTACESS

I currently have a wordpress multisite setup of that consist of two sites, one is a subdomain. lets call the main domain www.domain.com and the sub domain test.domain.com For both domains I need to ...
-1
votes
0answers
12 views

Redirect URL to Sub-Domain

I've seen a lot on redirecting entire sites and pages within the same domain, but I am moving my subpages to a seperate subdomain (ex. /example is now example.website.com). We have marketing ...
0
votes
0answers
15 views

Wordpress path multisite redirect

I'm trying to install a multisite (subdirectory) on http://domain.com. Everything seems to be working fine, but when I'm trying to visit my subsite on http://domain.com/jobs all the links to my ...
0
votes
0answers
14 views

How can I map a domain from one Wordpress single site install to a Subsite on a different Wordpress Multisite install

I am completely lost. Scenario: Old site was this: Multisite install - three sites: Site 1: Help Site (url1.com) Site 2: Release Notes Site (url1.com/releasenotes/) Site 3: Login Help Site (url1.com/...
-2
votes
0answers
25 views

How to create custom error page in plugin?

I am trying to add custom error pages that get shipped with my plugin. I have already managed to create a public url to the WordPress where to redirect the users who got managed to get to the error ...
0
votes
2answers
17 views

.htaccess home configuration

How to configure .htaccess to this: I need that my home page is http://mydomain.cl/c/news/ but I cant do this. Anyone want help me please? Thanks! Now, my htaccess is : # BEGIN WordPress <...
0
votes
2answers
30 views

301 redirect from webpage to wordpress page in the same root

I installed WordPress in my root directory http://coinauctionshelp.com. I want to redirect pages in the root to the new wordpress pages using an .htaccess file like this 301 redirect http://...
0
votes
0answers
20 views

Redirect main domain to www and https but not affecting any subdomains

I've tried a million things but it's been a nightmare. Mostly ending with the subdomains redirecting to the main domain or everything just not working in general. The client failed to tell me that ...
0
votes
0answers
27 views

Gzip compression not working [migrated]

I have enabled mod_rewrite, mod_deflate, mod_headers and mod_setenvif in Apache and not mod_gzip, mod_filter. Tried <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and ...
0
votes
0answers
13 views

custom post type cate/child not working

hey i have this custom post type with taxonamy job_listing_region register_post_type( 'job_listing', array( 'hierarchical' => true, 'public' => true, 'rewrite' => array( ...
1
vote
0answers
20 views

Wordpress mutisite migration

Recently i have install a wordpress multi-site for a client. After the initial launch client had change mind to transfer the site to a another domain, i have moved the WP multi-site successfully, i ...
-1
votes
1answer
37 views

How to Redirect Url to homepage?

For seo based this 4 url display 404 page. Now we wants to redirect on homepage but my htaccess rule not working. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{...
0
votes
1answer
30 views

How to rewrite a folder in WordPress?

I'm using "The7" theme and don't want to use the standard Portfolio archive template. I have used the default template to create a page that looks great, let's call it /our-portfolio/. Currently the ...
0
votes
0answers
23 views

Pagination Duplicate content issue (.htaccess help)

I want to get rid of /page1.html from all the pages, as xyz.com/cat1/page1.html and xyz.com/cat1/ will lead to same result. I have tried this in my .htaccess: RewriteEngine On RewriteRule (.*)/...
1
vote
2answers
46 views

.htaccess 'down for maitenance' and WordPress

OK so - we need a solid .htaccess rule to make the following happen: Deny ALL from visiting the site (they are taken to 'down for maintenance' page, but ALLOW for me and our developer. Yes, there ...
0
votes
0answers
19 views

SSL and WordPress Infinite Loop

I have the following htaccess directives that results to an infinite loop in Firefox (Windows) and IE (Windows) and possibly other browsers (iOS safari). On Chrome (Windows/Android) it works fine: # ...
0
votes
0answers
39 views

Internal server error after creating new Multisite

I'm trying to create a local Multisite. I've created the site and updated the wp-config and .htaccess files, and set rewrite to allow all. When I go to the subdirectory (it would not let me create ...
0
votes
1answer
20 views

How to proxy local WP uploads folder to live site

Stack: MAMP PRO on OSX 10.11.5 (El Cap) Scenario: I'm developing a site locally, and there is already a live version of the site online. Rather than download all 4gb of the uploads folder, I'd ...
1
vote
1answer
19 views

.htaccess rewrite rule puzzle

Because I need to password protect a subdirectory using cPanel, I modified Wordpress's .htaccess rule as instructed here: https://wordpress.org/support/topic/password-protect-a-directory-with-htaccess ...
0
votes
0answers
59 views

wp-admin/post.php access denied

When I publish or update posts with media (eg: image ) it results to following message. Access Denied You don't have permission to access "http://example.com/wp-admin/post.php" on this server....
0
votes
0answers
20 views

Configure .htaccess to access at two WP installation

I have a server where I have this situation: root folder -> installation files of WP and relative .htaccess -- home folder -> another WP installation ad relative files and .htaccess Below the ...
0
votes
0answers
15 views

add_rewrite_rule to fix fastcgi issue with basic AUTH

The issue is that $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are not populated if PHP is running CGI/FastCGI as the server API. I've read there is a possible fix with this through htaccess ...
0
votes
0answers
13 views

add_rewrite_rule redirection okay, but not detecting add_rewrite_tag as query_var

I'm having an odd issue with add_rewrite_rule and add_rewrite_tag I basically am creating a page so that if you go to:- http://domain.com/enquire-now/test/ It will go the equivalent of:- http://...
0
votes
0answers
16 views

Show root pages without changing url of the sub folder htaccess rules

URL 1: abc.com/shops/Rebeka/ URL 2: abc.com/Rebeka/ Here for example Rebeka is a post name that exist on root (URL 2) but it is missing under /shops/ folder. Here I want to keep both of the urls ...
0
votes
0answers
26 views

htaccess set public pages and then allow from specific referer

I've done a lot of searching already and I have read the full documentation on .htaccess. However, I don't seem to get some restriction rules to work for my WordPress website. I'll explain the ...
0
votes
0answers
16 views

How to enable htaccess rules for MultiSite mapped subdomains?

Running a multisite network, setup with subdomains. Hosted on a Pagely VPS. Using WordPress MU Domain Mapping for all "live" sites in our network. Attempting to better page speed scores, and am ...
0
votes
1answer
23 views

redirecting an entire WP site from one top level domain to another

I think I know the best way to proceed doing this but just want to get some reassuring thumbs up before going ahead. Basically I want to move a .co.uk domain to the same name but .com The site ...
0
votes
1answer
26 views

Rewrite /keyword1+keyword2.html to search page | .htaccess

I am facing trouble redirecting the keywords to search page in a wordpress 4.4 setup. What I am trying achieve is to rewrite/redirect www.site.com/**search+keyword.html*** to www.site.com/**?s=...
0
votes
1answer
70 views

Multisite on localhost using xampp

I'm having some trouble getting Multisite to work on my localhost using xampp. I have the main site in a subfolder so the path would be http://localhost/my_site/. I'm getting two different errors, ...
0
votes
2answers
20 views

Local PC cache stays filled with old WordPress Site data

I am developing a new WP site. My client complains that he see old site data like links that refer to old category names. On my PC and other I have no problems with this. On server side there is no ...
0
votes
0answers
33 views

Accessible Subcategory URL's pages without using .php hack

I'm attempting to setup a custom URL structure within posts that makes all parents and sub child's accessible, but all attempts have failed with various errors. My category structure looks something ...
0
votes
0answers
23 views

Year archive permalink structure redirecting to home

I'm having issues with the permalink structure of my yearly archives. http://testsite.com/2016/04/ works, but http://testsite.com/2016/ redirects to http://testsite.com My blog base page is: http://...
0
votes
0answers
39 views

Cannot access network admin and sub-site pages (multi-site)

I have copies the all files and folder from live site and copied on my localhost. My main site is working properly but when accessing the sub-site it's get page not found error and when accessing the ...
2
votes
0answers
14 views

WordPress trims off the forward slash when import

I have an XML file with some posts to import to WordPress But, when I import, it seems that WordPress takes off the forward slash from the permalink, so instead of showing the address like this: ...
0
votes
1answer
41 views

What causes /pages/ to appear in URI, and how to remove it?

I have a WordPress site I am working on, in which /pages/ appears in the URI for all Pages. For example, www.site.com/pages/contact-us/ I am stumped as to why this is occurring, it doesn't occur on ...
1
vote
1answer
49 views

Remove Parent Category from Child Category URL

I am trying to remove parent category from the child category but each attempt returns a 404 error. Main Category Link (Displays All India Recruitment) Child Category Link (Displays Sub-Category) ...
0
votes
0answers
22 views

Targeting .htaccess file with file_put_contents

I have a htaccess file and the path to access it is: wordpress/.htaccess When I use: file_put_contents('wordpress/.htaccess', implode('', $data)); I get the error "Failed to open stream"... How ...