Timeline for .htaccess to redirect to a wp page
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 16, 2020 at 15:29 | comment | added | Fanky |
in WordPress means with add_rewrite_rule() ? I couldn't get that work either...
|
|
Oct 16, 2020 at 15:19 | comment | added | MrWhite |
You need to do this in WordPress, not .htaccess . When you internally rewrite the request (in htaccess), WP still "sees" the URL that was requested (ie. the root), not the URL that is rewritten to (ie. /language ). And you should be using the L flag, not N ! (No need to repeat the <IfModule> and RewriteEngine directives.)
|
|
Oct 16, 2020 at 15:00 | history | asked | Fanky | CC BY-SA 4.0 |