2 "how to/best way" Redirect Syntax questions
I’m sure these are answered in this forum already but WP’s plugin forum search is pretty much useless.
I just set up a load of redirects (thank you for the import feature!) for a site that was static until yesterday, WP driven as of today. They are almost all 1:1 redirects from /blah to /blah-blah or /foo/index.html to /foobar/.
First question: Should I always start with a ^caret?
I didn’t include the ^ at the beginning nor the $ at the end like I likely would if I did the by hand in the .htaccess file for the bulk of the redirects because they are 1:1 (and because the examples on the plugin pages didn’t use them). Is this ok? I’m assuming the plugin is using PHP to redirect, not Apache but I’m not sure what difference that makes if any at all. Most seem to be working as is.
Second Question: How to match for both /foobar/ and /foobar/index.html
Is this the best way:
^/foodbar(/|/index.html)$with regex set to ‘On’?
- The topic ‘2 "how to/best way" Redirect Syntax questions’ is closed to new replies.