how do I use htaccess to redirect old incoming links?
-
hi i have a new permalink structure since a server move. `What used to be:
https://kikay.exchange.ph/2006/10/30/kikay-cams/
became:
https://kikay.exchange.ph/index.php/2006/10/30/kikay-cams/`
I’d like to stick to the new one, but I’m sure there are sites out there with links into my site that are still with the old one.
How may I redirect these to the new permalink structure using htaccess? Currently, my htaccess reads like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/cgi-bin(/.*)?$ [OR] RewriteCond %{SCRIPT_FILENAME} -f [OR] RewriteCond %{SCRIPT_FILENAME} -d RewriteRule .* - [PT,L] RewriteRule ^([a-zA-Z0-9-]+)/?$ /index.php [L] RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /index.php [L] </IfModule> # END WordPress
thanks so much
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how do I use htaccess to redirect old incoming links?’ is closed to new replies.