skip to Main Content

WordPress: Redirect Removing date from url using .htaccess

I have a redirect problem with WordPress and removing the date from the URL: OLD: https://www.example.de/2022/03/03/here-is-the-article-name-2582/ NEW: https://www.example.de/here-is-the-article-name-2582/ Redirect ERROR: https://www.example.de/03/ he redirect all the time on the "day" path. here my .htaccess test: ########### REDIRECT 301 ############ RewriteEngine on…

VIEW QUESTION

How to attach same RewriteCond to different RewriteRule in .htaccess? – Apache

I want to redirect url to my ogp page when User-agent matches Twitter or Facebook. My redirect image is like this. /news/detail.html?id=1 -> /api/v1/informations/ogp/1?lang=ja /news/detail.html?id=1&lang=en -> /api/v1/informations/ogp/1?lang=en /sport/detail.html?id=1 -> /api/v1/sports/ogp/1?lang=ja /sport/detail.html?id=1&lang=en -> /api/v1/sports/ogp/1?lang=en /event/common/detail.html?id=1 -> /api/v1/events/ogp/1?lang=ja /event/common/detail.html?id=1 -> /api/v1/events/ogp/1?lang=ja /event/special/detail.html?id=2&lang=en…

VIEW QUESTION

Error in htaccess file when clean url of php file – Apache

When I open this page of my website it gives a 500 error: single-portfolio/3/bizdb-business-directory-data-scraping-uk- My .htaccess file: RewriteEngine on RewriteCond %{THE_REQUEST} /([^.]+).php [NC] RewriteRule ^ /%1 [NC,L,R] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [NC,L] RewriteRule ^single-portfolio/([0-9]+)/([0-9a-zA-Z_-]+)$ single-portfolio.php?id=$1&title=$2 [NC,L] Error shown…

VIEW QUESTION
Back To Top
Search