Tagged Questions

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
votes
1answer
13 views

Wordpress Multisite Subsites showing 404 error [on hold]

I had my wordpress multisite working fine. I had to redirect the sub site folder to main site. I had sub sites like: www.domain.com/site1, www.domain.com/site2 I had to redirect those sub sites to ...
-1
votes
0answers
19 views

htaccess file redirect rule [on hold]

Google webmaster sent me an email that says: "Stop redirecting smartphone users to the homepage." I think there is a problem in my .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
0answers
6 views

How would I have to change rewrite rules to use a custom ms-files.php

I've previously wondered about securing file access by non-logged in users who know the full URL in multisite. When ms-files was still used modifications to this file allowed a basic form of WP-run ...
1
vote
1answer
35 views
+50

Change in permalink structure made javascript cookie not work correctly

My site needs a mechanism where a user is sent to agreement page when he visits the site for the first time. Once he accepts the agreement, it is saved in cookie. He can browse any page directly after ...
0
votes
1answer
24 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
1answer
26 views

.htaccess help to a beginner

I have made a custom page template and created a new page which is set to use the custom page template. My URL for the custom page is now: www.domain.no/property The website will have 3 different ...
0
votes
3answers
40 views

Is there way to redirect all blog post pages to Home page?

I am creating a social bookmarking site using WordPress. I am using a custom field to store the web URL. Then when a user clicks the Title, it redirects to the original blog post page. Please check ...
-1
votes
0answers
11 views

Convert URL with .htaccess

ORIGINAL URL: http://localhost/category/product WANTED URL: http://localhost/product/ I have this .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /en/ ...
0
votes
1answer
25 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
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
12 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
0answers
21 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
19 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
33 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 ...
0
votes
0answers
16 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
1answer
15 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
29 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
12 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
11 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 ...
0
votes
2answers
24 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, ...
0
votes
1answer
34 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
24 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
63 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
17 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 ...
0
votes
0answers
25 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
14 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 ...
0
votes
1answer
42 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'); ...
0
votes
2answers
57 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 ...
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
1answer
25 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
27 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 ...
4
votes
1answer
132 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 ...
2
votes
2answers
43 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
73 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
29 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? ...
0
votes
0answers
21 views

.htaccess restrict subdomain by IP - Wordpress Multisite

I'd like to redirect traffic away from a subdomain install of Wordpress Multisite unless it's coming from a specific IP address/range, and without affecting the root domain traffic. Is this possible? ...
0
votes
1answer
30 views

different CNAME to corresponding subfolders

I have three wordpress websites hosted on Apache server in three different subfolders, like www.mydomain.com/sub1;www.mydomain.com/sub2;www.mydomain.com/sub3 Now, I have three new domain names ...
0
votes
1answer
38 views

htaccess has broken my site

I made a small addition to the htaccess file and it broke my site (I'm certain there were no errors, however). So I deleted what I added and 24 hours later the site is still broken. I've disabled the ...
0
votes
0answers
36 views

WordPress Htaccess Redirect Loop

I have a site with a wordpress blog in a sub-folder named blog. I added an .htaccess file to the main folder, with just the following lines: Options +FollowSymlinks RewriteEngine on Rewritecond ...
0
votes
0answers
70 views

404 not found error on WordPress local host

I'm doing some work on a live WordPress site, and before making changes wanted to create a local copy of the site to use. I've gone ahead and done that, (using BackUpBuddy) but I am getting this ...
0
votes
0answers
81 views

Change Login URL Without Plugin

I want to change the login url of my Wordpress install away from /wp-admin.php I am aiming to do so and am looking at changing the .htaccess file to add in: RewriteRule ^login$ ...
0
votes
0answers
33 views

404 error with nested WordPress installations

I'm making changes to a site that someone else built in the root directory of their server and trying to add another directory with wordpress onto the root of the server, it gives me a 404 error from ...
0
votes
0answers
39 views

Multisite permalinks for subfolder wordpress installation

I have WordPress installed in a subfolder of the main site: http://www.example.com/blog/ Now I need to add second blog on http://www.example.com/blog/second/ So 2 blogs should work on the following ...
0
votes
0answers
18 views

Complicated site setup; previews not working

I have a site which is hosted on a linux box (blog.example.com). I have a main site which is on a separate windows IIS box using the domain www.example.com. I have an IIS rewrite rule which rewrites ...
0
votes
1answer
48 views

.htaccess RewriteRule to include post type and taxonomy

I'm trying to rewrite this url www.domain.com/gallery/?university=birmingham to an seo friendly one like this www.domain.com/uni/birmingham/gallery the (?university=birmingham) represent the ...
0
votes
1answer
39 views

Protect wp-login, but get an internal server error

I am trying to protect my wp-login by #Protect wp-login <Files wp-login.php> AuthUserFile ~/.htpasswd AuthName "Private access" AuthType Basic require user myusername </Files> after the ...
0
votes
1answer
42 views

How to change home or site url using action hooks or filter?

I want to change url dynamically, so is there any way to change url? I know other methods like from admin, directly from database or wp-config. but i want to change it from either hooks or filter. ...
0
votes
2answers
49 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 ...