Questions tagged [htaccess]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Redirection issue

I run intro problems with my redirection. I got two domains casparpreservers.eu and caspar-labs.com. My problem is: Casparpreservers.eu should redirect all former posts so caspar-labs.com. E.g. ...
0
votes
0answers
14 views

Pages in wp-admin is not found 404

I moved my website from localhost to web server. The website works fine. When I explore any page the urls on the website(front-end) are working fine so permalinks are not a problem. Issue is when I ...
0
votes
0answers
14 views

Multisite Wordpress Redirect

I have Wordpress running on a server running Apache 2.4 (wordpress). Wordpress is running on port 8080. We have a proxy back to Wordpress going from port 80 (proxy:80) to 8080 (wordpress:8080) on a ...
0
votes
0answers
6 views

Redirect from different port to subdomain - htaccess

I created a Digital Ocean instance to install wordpress website 5 days ago. I already have my own domain, and created DNS Subdomain blog.mydomain.com. the server runs both nginx and apache so my ...
0
votes
1answer
29 views

How do I do a redirect to WordPress permalink with post id via htaccess?

Years ago I saw Jeff Starr of Perishable Press set up shortlinks for a book of his where URLs such as example.com/u/123 redirected to example.com?p=123. I thought that was a handy way to set up no-...
0
votes
1answer
23 views

How to rewrite wordpress search to work on specific category

I want my wordpress search to work on specific category within custom search, by default this actually work fine example.com/categoryname/?s=keyword but I want to make it work like this example.com/...
0
votes
0answers
19 views

How to hide subfolder of static pages in Wordpress using htaccess

I need help please because I cannot find a solution for my problem. I need to hide a subfolder in the url of my wordpress site. I created a subfolder where I uploaded some static pages in php ...
0
votes
0answers
21 views

Help with .htaccess setup to hide WordPress Directory

I have a WordPress site that is installed in a directory called cms. I will be using a pure HTML page as my Home page, the inner pages will be using WordPress. Let's call the website mysite.com ...
1
vote
1answer
37 views

htaccess file for multiple CMS's (multisite wordpress + wolfcms) on same domain but different subdirectories

Thanks for reading this! The website I am building is used for an annual symposium that is held since 2003. All those website are still online and should remain online. From the year 2003 till the ...
0
votes
0answers
12 views

Replace product in the Woocommerce permalink [on hold]

OK so I'm looking to customise the woocommerce permalinks by replacing product with a taxonomy term which is required for the products... https://www.example.com/product/my-product-name I want to ...
0
votes
0answers
41 views

htaccess redirect to path

I'm trying to get my site to redirect to a certain folder depending on a condition. This condition cannot be done within WP, so... Anyway.. I've done conditions before, but I keep hitting a wall ...
0
votes
3answers
22 views

Increase .htaccess file upload without prompting error

I have a Centos Web Panel hosting and a new WordPress file. I wanted to migrate all of my local WordPress files to the live server so I installed All-in-one WP Migration. Unfortunately it can only ...
0
votes
1answer
22 views

wp-admin and wp-login.php not Accessible after Cloudflare

I have the following .htaccess rule to limit access to wp-admin and wp-login.php locally via SSH dynamic forwarding: Order Deny,Allow Deny from all Allow from 127.0.0.1 However, after installing ...
0
votes
0answers
39 views

WP Migrate DB Pro plugin cannot transfer Media files to remote server

I'm using Delicious Brain's WP Migrate DB Pro plugin to migrate database tables and to transfer Media files (add-on) from my local virtual machine to my remote server (provided by GoDaddy) This ...
0
votes
0answers
22 views

Loading /wp-content/uploads/site as /site/

I love websites so much that I want to put a website into another website. I have a static site under /wp-content/uploads/site. It has a lot of pages and I can access it without an issue in https://[...
1
vote
1answer
47 views

Append country to 'pretty' url but serve same page

For one particular page on my site I would like to append the country to the URL. The reasons for this are purely aesthetic so the customer knows that the prices on that page are in their own currency ...
1
vote
1answer
30 views

How do I redirect all 404 error url to Subcategory url

I have a b blog of over 200k+ post and I moved all post from a specific category to a subcategory, I have also deleted the post from the my main site, so all the post of that category have been moved ...
1
vote
2answers
36 views

How to redirect from various ?page_id= to home page?

I have a website where I need to 301 redirect all old pages that are incoming from old URLs like /?page_id=261, /?page_id=204, /?page_id=2677 and so on to the main home page. What would be a proper ...
1
vote
1answer
33 views

Redirections and rewrites to subdomain

I am currently working on a new WordPress website, to partially replace a non-WP website that includes a webshop. Now, the plan is to migrate the webshop and all matching pages (shopping card, order ...
0
votes
1answer
46 views

Install second wordpress in root subfolder, Error 404

I am trying to install wordpress in a subfolder of an existing wordpress installation. I created a the subfolder /wp unziped a fresh Wordpress download inside of that directory and added a .htaccess ...
0
votes
1answer
23 views

How to allow download url redirection only if user logged in Wordpress site?

I'm trying to allow url-redirection (from /dl urls) only if user is logged-in to wordpress site. Otherwise don't allow. However it went "page not found" when i click these urls with or without logging ...
1
vote
2answers
45 views

How to change redirection route to a php page for making it only accessible by logged-in members?

Background of my problem: I'd like to mask external download links as internal links and to be only accessible by logged-in wp users at htaccess level or with PHP script but when redirection happens ...
1
vote
2answers
18 views

WordPress - Promoting A Dev Build In A Subdirectory To Production / Root Directory

I recently took over a WordPress site with the following directory structure inside of /public_html: wp_config.php /wp-admin /wp-content /wp-includes ... ... ... /development The root (production) ...
1
vote
1answer
44 views

htaccess, site and staging in subdirectories

I have the following task and as it is a little different from most setups, I couldn't find any hints that solved my problem. WordPress for the live site was installed into a subfolder /wp1, the ....
2
votes
1answer
24 views

Why specific file directory fails to redirect but its parent folder succeeds?

I activated multisite using subdirectories on my old WordPress site, and I created a new site (say my-example.com/new-site/). I found links such as my-example.com/new-site/wp-content/mu-plugins/css/ ...
0
votes
1answer
20 views

Iterating users while user iteration is suppressed

Recently I noticed various login attempts being blocked by security plug-in this is pretty much ordinary when the attempt is about non-existent users or default/common user names like the website name,...
1
vote
0answers
13 views

Wrong filepaths and admin page infinite reload after migrating to aws bitnami

I recently migrated my wordpress multisite from localhost to aws bitnami multisite. I used duplicator pro, deleted everything inside the wordpress/htdocs folder and ran the installer.php hrom there. ...
1
vote
0answers
62 views

Page preview is shown, updating page gives 404 error

I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like http://www....
0
votes
2answers
59 views

Redirect from https to http or from http to https? [closed]

We have a WordPress blog, google is indexing http as well as https urls. Now we are considering to either redirect https to http, or to use https and redirect all http traffic there. And how can we ...
0
votes
1answer
52 views

removed index.php now all pages 404

I added this code to my .htaccess file to get rid of index.php, but now all the pages 404 (the hyperlinks are mapped to the correct url) # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
0answers
19 views

Mystery with permalink: works only with Custom Post Types and not with Posts and Pages

My permalink works only with Custom Post Types and not with Posts and Pages. The permalink structure is https://mainsite.com/mysite/%category%/%postname%/ I'll break down the details of the mystery: ....
0
votes
0answers
33 views

Wordpress site not forcing from http to https instead getting redirected too many times

This is what I have done so far. In the settings in the admin I have updated the url to https e.g https://www.example.com But if i was to visit a page for example https://www.example.com/contact-us ...
0
votes
0answers
54 views

Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?

I am working on a Multisite that was installed and activated on an old version of WordPress. The WP files were placed in a subdirectory named /wp/ and now a request has been made for the subdirectory ...
0
votes
0answers
40 views

Wordpress Media Library rendering blank image tiles

Problem: I have been experiencing an error with all my images on my site. When I navigate to my website in any browser, none of the images are rendering. When I login to my admin portal and navigate ...
0
votes
0answers
24 views

WordPress Multisite query parameters

Am currently having an issue with the redirection of query parameters on a multisite. I have embedded an Angular App inside an iframe and have a script to assign the query parameters of the app to the ...
-1
votes
1answer
20 views

Multisite website configure Domain issue

I have multi site website lets say example.com example.com/ab and example.com/cd. Now I need to add another website in this network which is run on separate domain. lets say mywebsite.com and ...
1
vote
1answer
36 views

Headless Wordpress redirect front-page to login page [closed]

Is there any way to redirect https://example.com/ to https://example.com/admin with .htaccess ? I'm using WordPress only for the API.
1
vote
3answers
49 views

Permalinks settings page blank

My site is giving a 500 error and I've been trying various ways to fix it. First, I'm trying to reset permalinks, but the options-permalink.php page is totally BLANK. Unlike all the other solutions ...
2
votes
1answer
76 views

Is it possible to dynamically redirect URL using htaccess?

Is there any way to dynamically redirect URLs. For example, I want to redirect any URL from https://example.com/NNNNN to https://examplecom/?p=NNNNN. Where NNNNN could be any possible numbers. For ...
1
vote
1answer
95 views

Landing Page Redirect Chain | http->https->https www

I am getting this error for redirect chain on GTMetrix when I check my website. The chain is as follows: http:// https:// https://www. I am using this plugin for HTTPS https://wordpress.org/...
1
vote
1answer
85 views

Write to / remove from default .htaccess file from plugin?

I'm working on a WordPress plugin, and I have a checkbox option to add cache control headers. I'd like to write to the htaccess file if the option is set to 1, else remove the new content. I've been ...
0
votes
1answer
56 views

Wordpress redirect all 404 pages to the Homepage

I want to redirect all 404 error pages on my WordPress site to the homepage, or to a specific page. Any advice?
1
vote
1answer
30 views

How to restrict access to image folder depending on whether product is purchased or not?

In WordPress I want to be able to sell sets of emoticons (png images). These sets emoticons are stored in a folder under the plugin (eg. wp-content/plugins/my-plugin/emoticons/set-1/happy.png) Some ...
0
votes
1answer
27 views

How to make front page temporarily show content of internal page

I'm building a Wordpress site with /blog/ as the posts page, with ACF and other options on the page. Client wants to launch the blog part of the site on their current non-wordpress site as a ...
1
vote
1answer
53 views

Specific URL has 403 Forbidden status code

I'm debugging a Belgian WP website: slotenmakerbelgie.com. The problem is that I get a forbidden status on a specific URL: slotenmakerbelgie.com/error/ (with and without trailing slash at the end) I ...
0
votes
1answer
44 views

Pretty Url not working on the server

I have a wordpress website however I am not able to make the pretty permalinks work on it. The htaccess fil is writable on the server with file permissions 777. So kidly guide me on the issues and ...
0
votes
0answers
80 views

htaccess redirects invalid request to home page not 404

Trying to work out how to get Wordpress / .htaccess to show a 404 error page for invalid requests. With a default WP .htaccess file a request like https://example.com/?exam=testing.html will ...
1
vote
0answers
29 views

Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance

It seems that many Wordpress users, even very experienced ones, aren't aware that, in normal circumstances, with pretty permalinks enabled, an inexactly written or superficially non-matching URL will ...
1
vote
1answer
24 views

How can I code my plugin to safely modify .htaccess?

I want to add rules to .htaccess from within a plugin without upsetting the WP core permalink rules or rules that other plugins have added. (My aim is to block scraping of fonts by checking the ...
0
votes
0answers
17 views

Access non-wp .php file on Wordpress subfolder

I have the following .htaccess for my wordpress / bedrock installation: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mysite/ RewriteRule ^index\.php$ - [L] ...