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
1answer
16 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 ...
-2
votes
0answers
24 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
1answer
65 views

How can I serve a text file at a custom URL

I have a WordPress site installed at the root of the webserver: / I want to serve a text file from here: /.hiddendir/secondlevel/textfile I've created this file and directory on the server at ../...
1
vote
1answer
796 views

Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites

I have a custom 404 page, but dont want serve it for every broken asset that may crop up. Instead I want to just serve the Apache 404 as its much faster. I've found the following htaccess rule that ...
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
16 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
1answer
25 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
1answer
463 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
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?
1
vote
1answer
1k views

mod_rewrite loop, redirecting http to https on certain section of wordpress blog

I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http: /cart/ /my-account/ /checkout/ As well as these rewrite's worpress has added a rewrite to remove ...
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
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, ...
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
2answers
2k views

add_rewrite_rule to remove /category/ from permalink

Hi I have many permalinks across my site that looks like this: http://www.mysite.com.com/market/category/slug/slug/slug/ http://www.mysite.com.com/market/category/slug/slug/ and would like to hide /...
0
votes
1answer
474 views

Modify the .htaccess file

I have a very simple problem: I want to modify the .htaccess file. It seems I'm not the only person and I've seen the other questions and googled the issue. Nothing helps. Something keeps overwriting ...
1
vote
2answers
738 views

Only default permalink is working mod_rewrite enabled

My problem is in my wordpress site only default permalinks is working.. When I change permalinks all pages become not found.. only home page is showing. When I change permalinks to postname .htaccess ...
3
votes
1answer
517 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
3
votes
2answers
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
0
votes
1answer
462 views

How do I remove a word from a url in Wordpress using .htaccess?

In the site I'm building there is a post-type called "Focus". Since they need to url to be like www.mysite.com/focus/page-post-name I have the post type slug as "focus". Of course the archive page is ...
0
votes
1answer
703 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway (...
0
votes
1answer
868 views

Working with Reverse Proxies and Multisite Installation

We have a wordpress multi site, the main site has a URL similar to mainsite.com Each of the sub sites have a URL such as subdomain1.mainsite.com, subdomain2.mainsite.com etc Each of the sub sites we ...
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
1answer
1k views

HTTPS to HTTP rewrite rules not working as expected

I'm struggling at getting these rewrite rules to work and was wondering if someone can point out my error(s). The following should redirect a user to HTTPS if they are at the login page or in the ...
0
votes
2answers
408 views

Troll the hackers by redirecting them

My website is getting somewhat popular, and with the it's increasing popularity there's an increase in the hackers. Last night I visited my security logs and found that everyday approximately 10 ...
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/...
1
vote
2answers
10k views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as style....
1
vote
1answer
1k views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
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 ...
0
votes
2answers
679 views

Simple seo-friendly custom $_GET url rewrite with htaccess

I have this url: http://sitename.com/?game=runescape Is it possible to modify the htaccess file or rewrite the url via Wordpress to become like this: http://sitename.com/game/runescape
-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
2answers
4k views

hide wp-content from urls

Here is what I am thinking of trying to hide wp-content from the urls of files included in page source. defining the following in wp-settings.php define ('WP_CONTENT_URL','http://example.com/...
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/...
0
votes
1answer
56 views

Wordpress redirect from one directory to another but exclude wp-admin and wp-login.php

I would like to redirect an entire WordPress sites (posts, pages, categories etc) from one sub directory (blog) to another (news) but excluding /wp-admin/ directory and the /wp-login.php file. I have ...
0
votes
1answer
563 views

htaccess 301 Redirect not working from aspx to new WP permalink

I'm fairly experienced with htaccess files and Rewrite/Redirect rules, however, this one has me stumped as to why it's not working. NONE of the following lines (used individually, not together) have ...
0
votes
2answers
16 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 <...
1
vote
2answers
594 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
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 ...
1
vote
2answers
2k views

Wordpress multisite in subdirectory, not root, and remove base folder from url

I might be misreading but I can't find a solution to the following need: I want to install WordPress in a subfolder of my www directory, let's say www/wp. I then want to add two blogs to the multisite ...
0
votes
2answers
801 views

Wordpress JSON API restrict to specific domain

I have installed and activated the Wordpress JSON API (http://wordpress.org/plugins/json-api) in my self hosted WP site. Now my site content is open to the world via this API in JSON format. But, I ...
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 ...
1
vote
2answers
505 views

Which WordPress scripts need to be executable for a fresh installation?

For security reasons I need to block access to scripts that will not be executed on a fresh WordPress installation. Example: /index.php --> needs to be executable /wp-includes/cache.php --> should ...
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( ...
4
votes
5answers
5k views

WordPress permalinks Yahoo hosting(no .htaccess allowed)

I have moved a Wordpress install to a client from sub folder to the root folder. Right now, everything works fine, except for the friendly URLs. I currently have to set the Permalink feature in "...
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
vote
1answer
716 views

Admin-Ajax.php, SSL, Non-SSL

I have a WordPress site behind a reverse proxy. The site is over http, except the wp-admin area, which is under https. We don't have BasicAuth or anything running on top of the admin area. One of our ...
-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 %{...