If i do this {website_address}/match-result/?id=XXXXXX it works great,
My question is, is there a way for you to skip the /match-result/?id=XXXXXX and replace it with just match-result/XXXXXX
I tried editing the htaccess file, but wordpress threw up a 404 error.
Really appreciate any help.
]]>Links to the virtual subscription page are resulting in 404 because page management URL is https://mywebsite/manage-subscriptions/comment-subscriptions/etc but old management URL before an update were setup to point to https://mywebsite/comment-subscriptions/etc.
So now thousands of old subscriptions link to dead links because they are missing /manage-subscriptions/ while thousands of new subscription links work perfectly.
How do I append /manage-subscriptions/ in the older subscription links?
Thank you for your support
]]>So this: /test/post1/
or this /test/post1
should rewrite to /index.php?pagename=$1
where $1 is the posttitle e.g. post1. I think I have the exclusion working as a RewriteCond (see below) – how do I add the RewriteRule for it?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/(test|test/.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
]]># 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>
# END WordPress
Also, mod_rewrite in apache2 is active..
So, where is the problem.. Please?
]]>How to get rid of the WP installation folder > watercolorpainting.com/watercolor-painting-tutorials/ without moving the wordpress installation to the root domain?
The .htaccess rewrite rule is the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /watercolor-painting-tutorials/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /watercolor-painting-tutorials/index.php [L]
</IfModule>
I want my links without the WP folder like this:
watercolorpainting.com/for-beginners/
not like this: watercolorpainting.com/watercolor-painting-tutorials/for-beginners/
The solutions I found doesn′t fix my problem, because I have already an existing WP installation on the root with following .htaccess rewrite rules:
# 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>
# END WordPress
Can someone help me? Thanks!
https://www.ads-software.com/plugins/htaccess/
]]>How to remove trailling slash using .htacces in WodPress ?
I’m looking for a way to remove trailing slash for all WordPress URL’s.
I found similar answers, but it doesn’t work when there’s WordPress .htaccess rules before.
Thank you!
]]>I’m using WP 4.2.4 with Apache 2.4.7 on Ubuntu Server 14.04. Things I’ve done:
– I have mod_rewrite enabled in Apache.
– I have Options +FollowSymLinks and AllowOverride All and RewriteEngine On in the config file of my Apache server.
– I have given write permission for .htaccess in the root of my site and it’s being created fine. I know this because I deleted, changed the permalink option and it was recreated.
– I tryied to put ErrorDocument 404 /index.php in .htacess
– This is a VPS. I have root access.
– I do have other sites configured, but I have tried to remove all other sites from sites-enabled folder and leave only this one and the problem persisted.
– It’s a new WP installation, I don’t have any plug-ins installed.
I’ve been through many pages, tutorials and question on this issue with no luck. Any idea on what would be the problem?
]]>llamadas/([a-z_]+).html$ index.php?page_id=1051&pais=$matches[1]
If I type in the code manually it works, for example: /index.php?page_id=1051&pais=argentina
WordPress changes the URL to /llamadas/?pais=argentina and loads the page correctly.
I want the URL to look like “llamadas/countrynamehere.html” and display correctly. I’ve got the rewrite on top before the others, but no luck.
Any ideas?
Thanks!
]]>I managed to get redirects in my .htacces but somehow I really struggle with the wildcards within the mod rewrite
the following link:
site/changingvalue/view/
needs to be changed to
site/produkte/changingvalue
I tried the following solution:
RewriteCond %{REQUEST_FILENAME} /(.*)/view/$ [NC]
RewriteRule ^(.*)/view/$ https://site/produkte/$1 [L,R=301]
but it resulted in an “internal error” message
my second rewrite struggle:
/suche?key=changingvalue
needs to be changed to:
/?s=changingvalue&post_type=product
I would be SOOOOO grateful if anybody out there could help me
Clara
P.S: I don’t know whether it is essential I host with cloudways there is a help link: https://support.cloudways.com/entries/102732093-What-can-I-do-with-an-htaccess-file- but obviously im too dumb
I’ll give all the information I can regarding the problem.
On WordPress:
https://i.stack.imgur.com/NCpAW.png
https://i.stack.imgur.com/l9FdL.png
Refresh page:
https://i.stack.imgur.com/X5Utk.png
I followed this tutorial:
https://www.ads-software.com/support/topic/solved-permalinks-working-in-apache2-ubuntu-1010?replies=6
And nothing helped.
I found this post https://www.ads-software.com/support/topic/permalink-does-not-work-apart-from-default?replies=12 – so I entered I entered the file: /etc/apache2/sites-enabled/000-default.conf
and didn’t find AllowOverride None to change to AllowOverride All So I added it myself here: https://i.stack.imgur.com/99Y7j.png
Restarted apache, and I got an error. I refreshed the website, and found out it’s not working..
Undo AllowOverride All from 000-default.conf
What is the solution for this? I have never worked with Linux servers, so I’ll need a very clear and well explained answer please.
BTW, This is what WP generates in my .htaccess file:
# 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>
# END WordPress
]]>