Can I override WP permalinks with custom external url in .htaccess ?
-
Hi everyone !
The loooong title sums it up pretty well, but here are a couple more details about my problem :
Before switching to WordPress, we had a website build from scratch, in which an .htaccess file handled all the URL rewriting. Among other rules, we created a couple of clean links, used on QRcodes, printed documents, etc. For example :
mysite.com/ECvideo used to redirect to a youtube video, and mysite.com/MYdownload pointed directly to a downloadable content.Since I opened the new WP site (with a custom theme based on Twentysixteen), WordPress mistakes these links for pages permalinks, which leads to 404 errors.
I tried to include our old redirection lines in the new .htaccess file, within and outside the <IfModule mod_rewrite.c>, but it doesn’t work.
I would like to avoid using a plugin (the website is pretty loaded with plugins), but I didn’t find anything besides topics about customizing permalinks structure for SEO or Custom Post Type…
Any help would be appreciated ?? !
- The topic ‘Can I override WP permalinks with custom external url in .htaccess ?’ is closed to new replies.