Creating custom link that redirects to a another link

First, create a page with the intended URL slug and note down the ID of it. Then in your functions.php function wpse410694_custom_redirect() { //Let us assume the ID of the page is 123 if ( is_page(123) ) { wp_redirect( ‘drive.google.com/myCustomPDF_Link’ ); exit; } } add_action( ‘template_redirect’, ‘wpse410694_custom_redirect’); The maximum upload size is normally set from … Read more

Redirect ignore last URL segment

I was able to get it working by adding the following two lines to my .htaccess, right before the rest of the other WordPress rule RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC] RewriteRule ^(.*)$ /map [L,P] Bottom of my .htaccess with the rules looked like this: RewriteEngine On RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC] RewriteRule ^(.*)$ /map [L,P] RewriteRule .* … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)