WordPress URL/Folder ReWrite using Htaccess
WordPress URL/Folder ReWrite using Htaccess
WordPress URL/Folder ReWrite using Htaccess
…but that still didn’t remove the extension. To be clear, the extension should already be removed in the HTML anchor/link. The purpose of .htaccess is primarily to rewrite the extensionless URL back to the underlying filesystem path (which contains the file extension). RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] Apart from rewriting to .php, not … Read more
As you’ve stated, the B flag is required in this case. But this should be [B,L], not [BNC] as you’ve quoted a couple of times? Not sure where you got [BNC] from, but that’s wholly invalid and would break an Apache server (500 Internal Server Error response). If you don’t see an error, using this … Read more
To reduce multiple slashes at the start of the URL-path (or in fact anywhere in the URL-path) to a single slash (there is always at least 1 slash at the start of the URL-path, even if you can’t see this is the browser’s address bar) then you can use a directive like the following: # … Read more
In theory, you could rename the file and change the rewrite rule accordingly. Assuming you rename it to wp-index.php, it would look something like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp-index.php [L] </IfModule> There are a few references to index.php in the WP source, but they’re … Read more
Your .htaccess and wp-config.php look fine. Error 101 is usually caused by a network, router or proxy issue. It could also be related to your browser cache and or cookies Have you tried connecting with a different browser or computer or clearing your browsers cookies? It can also be caused by your computers antivirus or … Read more
Evaluating a external rewrite rule before internal wordpress rewrite rule
This is a dead end approch as the enqueue API do not support such versioning format which means that you will have to avoid using it, which is not a great thing. Your specific problem here is that you added the rule too late, RewriteRule . /index.php [L] “transfers” handling to wordpress and nothing is … Read more
I can see that you are rewritting to a specific page and I think that your problem is that WordPress inserts the canonial meta tag in the <head> of the HTML automatically for all core post types (post, pages, …). This meta tag will be pointing to the original page, because you are really in … Read more
If this address already gets traffic (from inbound links etc.) why don’t you try a good old fashioned redirect like this: Redirect 301 /sca/project_0 http://www.yourdomain.com/sca?urn=project_0 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Or use the 301 redirect in … Read more