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
9 views

WP Multisite .htaccess interferes with cgi-bin

I'm currently setting up a WordPress multisite installation for my company and I've run into an issue. The set up is that the multisite runs out of a subdirectory (/wp) but appears to be at the root ...
0
votes
1answer
19 views

Permalinks not working on second wordpress installed in a subdirect

I have a main wordpress installed on the root and now due to a long story about incompatible plugins I need to install a second full instance of wordpress in a subdirectory. The main site works fine, ...
0
votes
2answers
259 views

How to remove category from wordpress url?

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have ...
0
votes
2answers
504 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
0answers
6 views

mod_rewrite Wordpress url change

I want to handle following specific url: www.testing.com/onboard/uehtietfmretvbcuymwvrbqtmvrktkqtrycitfqtvbiutfwkqeyfktwbcuhtwchtmihy1 (this will be the url in browser) to ...
0
votes
1answer
469 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 ...
1
vote
1answer
265 views

Need help rebuilding lost htaccess file

I originally posted this on Stack Overflow (7 months ago). I didn't receive any answers and was not in a position to pursue it further. As of now I am working on resolving this, and would greatly ...
0
votes
0answers
17 views

Pretty permalinks for subdomain installation

Currently, the only way my posts will appear is if I have Permalink settings set to "Default". I would like to set them to "Post name". When it's set to "Post name," I get a 404 not found error. My ...
0
votes
1answer
14 views

Site Redirecting to wp-signup.php

I migrated content from our production server to our dev server in an attempt to sync all environments. I used the All-In-One WP Migration plugin. Now, when I access dev.domain.com I am forwarded to ...
1
vote
0answers
27 views

How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite

I have a question that I thought the below thread would provide the answer to, but things in WP have changed so it doesn't quite do it, although it helped my understanding of things. How to protect ...
0
votes
0answers
6 views

mod_rewrite issue

I am having problems all of a sudden with images not displaying. If I deactivate mod-rewite in .htaccess then images come back but I can no longer access post page permalinks having to resort back to ...
1
vote
1answer
404 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
15 views

Wordpress internally rewrite rule challenge

Questions 1: I work on wordpress website for a client. But the client like to have a deep level url structure. The custom post type can be from level 1 to unlimited levels in the url structure. ...
0
votes
0answers
10 views

Receiving a blank page using .htaccess and multiple variables [closed]

I've got a page with the permalink 'chat'. But now I want to manipulate my .htaccess so that I can pass two parameters in this structure: %blogurl%/chat/user_type/user_id e.g. ...
-1
votes
0answers
22 views

Woocommerce add to chart , edit password , view order etc not working permalink is ON [closed]

Hi i am using All Latest Version : thats WordPress and Woo-commerce. UPDATE : 13/10/2014 Admin page > Plugins, find "WP Total Cache" and deactivate it, deactivate ALL other plugins, Temporarily ...
0
votes
0answers
23 views

301 redirect in htaccess [closed]

I am trying to redirect old website urls to the new one. Redirect 301 index.php?page_id=5 http://Mydomain.co.il/?page_id=2283 what happens is that this rule is not working and instead page_id with ...
0
votes
1answer
12 views

Rewrite WordPress Standard Feed URL - /feed/ to feed.xml

I want to rewrite http://www.ourdomain.com/feed/ in the .htaccess file to http://ourdomain.com/feed.xml And we have some other feed URLs to Rewrite. After a search I could not find the correct ...
0
votes
0answers
23 views

htaccess url rewrite within WP installation

I want to use one of my subdomains to rewrite urls and finally forward to an origin extern domain. Example: goto.mydomain.com/1saKCA3 -> externdomain.com/1saKCA3 I already tried to implement the ...
0
votes
0answers
11 views

Create custom Rewrite Rule

Hi I'm trying to create simple multilingual plugin. For that I need to create RewriteRule, for example. example.com/fr/post1 or example.com/post1 How do I achieve this?
0
votes
1answer
10 views

Wordpress permalinks confusion

I have just realised something that I never knew and I wanted to get confirmation that it is expected behaviour or whether the website I am working was behaving incorrectly. I creating a page - lets ...
2
votes
1answer
544 views

Prevent users from accessing mp3s in my uploads folder?

I have mp3 players set up to play mp3s on my site. The mp3s are all being uploaded to the uploads folder. I don't want people accessing these directly, meaning I don't want people to be able to ...
2
votes
2answers
2k views

How do I edit the htaccess file to optimize my website?

Hi I have tried to optimize my website energyshop.se for a cpl of days but I cant seem to get it done. This is how my .htaccess looks like: Header unset ETag FileETag None # Hantera och redirecta ...
0
votes
2answers
10 views

Best way to redirect site in subdirectory to root?

I have a WP 4.0 site that has been installed at: mydomain.com/site It's been there for many years, so there are lots of links from around the web pointing to it. As part of an overhaul I am doing, ...
1
vote
2answers
133 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 ...
0
votes
1answer
241 views

.htaccess redirect not properly working [ ?utm_source=]

I have a wordperss blog. This blog has two domain names (example1.com and example2.com). In my situation, example1.com redirected to the example2.com. This redirecting work properly. I saw that ...
0
votes
1answer
27 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 ...
0
votes
0answers
52 views

Custom post type permalinks non working on wp 4.0

When I updated to WordPress v4.0 it removed all of my custom post type permalinks and replaced them with "/". I have 2 custom post types: "Business" and "Coupon". The permalink settings for Business ...
0
votes
0answers
20 views

Redirecting .aspx URL to a wordpress site page

A friend of mine have an existing site built in .NET, all the pages have .aspx in url on that site. Now we want to convert that whole website into WordPress. But the problem is that we don't want to ...
0
votes
0answers
13 views

Convert from .htaccess to web.config?

When I convert to web.config. It shows an error: <rewrite> <!--This directive was not converted because it is not supported by IIS: RewriteBase /.--> <rules> <rule ...
2
votes
1answer
662 views

Correct htaccess to display page while also passing in GET parameters

I have a wordpress page named: directory (it uses a custom template). When I call the page with: http://localhost:8888/wordpress/directory/?segments=listings/list It gives me the results I ...
0
votes
2answers
406 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
0
votes
0answers
22 views

how to rewrite folder name in url to another name

I am wondering wether it's possible to use Apaches .htaccess to rewrite a folder name - using a WordPress function. Lets say I have a url like: http://example.com/folder1/folder2/page.php Now I ...
0
votes
0answers
13 views

Rewrite blog at the beggining of my URL

So I uploaded a WP blog and I want to redirect ALL requests to my website (for example mysite.com) to blog.mysite.com with .htaccess. I've searched Google day and night to find a way to rewrite ...
2
votes
1answer
788 views

How to add custom rewrite rule to .htaccess?

I want to add a custom rewrite rule to my .htaccess file using a function inside functions.php The rewrite rule I want to add is as follows: RedirectMatch 301 ^/author/(.+)$ http://name-blog.com/$1 ...
1
vote
2answers
400 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 ...
1
vote
2answers
196 views

Permalinks not working with Vagrant

I am using Vagrant to build up a little Wordpress development VM. When I select permalinks (postname) then the page from an article doesn't load. However, when I select the standard link (i.e page id) ...
0
votes
2answers
48 views

Debugging a redirect loop affecting only certain pages

I am trying to fix a site which has several redirects that seem to have been added via a plugin called Peters plugin redirect. The plugin has since been deactivated and delated but the redirects loop ...
1
vote
1answer
326 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
1answer
39 views

add_rewrite_rule on multisite doesn't work

I define a rewrite rule on an init hook like: add_rewrite_rule( 'foobar/(abc|def|ghi)/(.+)(/(\d.+))', 'index.php?my_action=$matches[1]&my_name=$matches[2]&my_version=$matches[4]', 'top'); ...
2
votes
1answer
2k 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 ...
1
vote
1answer
558 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 ...
4
votes
1answer
117 views

Securing wp-admin folder - Purpose? Importance?

I am trying to understand how to secure a WordPress site. One security task I do not understand is...How important is it to protect the "wp-admin folder"? For example, I would consider limit login ...
0
votes
0answers
12 views

permalink problem in my .htaccess page

Please give me a suggestion for my question. when we set permalink in our site then the .htaccess code is RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
2answers
47 views

Why my wp site always redirecting to the old website path..?

I am having problem on migrating my Wordpress site from the sub folder to the root directory. My current website URL is not working on uploading the project on root directory. It's get redirected to ...
0
votes
1answer
24 views

Wordpress login bug. Need an emergency solution

I need emergency solution. I can’t login in to my wordpress site. After giving username and password it redirects to site/wp-login.php and shows a blank page. It does not take to the dashboard. I have ...
1
vote
1answer
26 views

How to hide that a certain non-Wordpress directory exists on the server?

I'm very much a newcomer to Wordpress and to this site, so I apologize if this is easy or addressed elsewhere. I have a WP 4.0 site, using a naked domain http://example.com, with the WP installation ...
2
votes
2answers
39 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
0answers
66 views

.htaccess wp mod_rewrite causing error 500 on subdomain which does not run wp

My website www.vegmomos.com is running on WP and my subdomain publisher.vegmomos.com is not running WP. The htaccess has following WP code: # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
0answers
25 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
1answer
39 views

Change root directory

I would like to change the root directory of my website from the 'e' folder (http://www.domainname.com/e) to 'wp' folder(http://www.domainname.com/wp). How do I go about this using the .htaccess file? ...