.htaccess RewriteBase vs html Base? -


i have folder inside root called someappname , users can logout going link someappname/logout. users need able logout anywhere in site. instance when editing list of regrets. when users go /someappname/regret-list/edit/<someregretid> , done editing takes them /someappname/regret-list/edit/logout not existing route.

i thought fixed adding .htaccess file , using rewritebase /someappname/ , instead directing users /logout instead of reaching /someappname/ not arriving @ /logout not intended behavior.

i pretty sure can fix using html base property don't understand why .htaccess file not help? advice appreciated.

after research find .htaccess: rewritebase works rewrite base of rewrites. means routing not work correctly without when move application out of root folder , needed that. appears need html base in order links absolute going right places.

tl;dr

you need both, 1 apache mod rewrite , other common absolute links. unless wish include new parent directory path in every link.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -