.htaccess - How to add a slash or why it isn't added? -


i using bootstrap add accordion function jobs page on new website. works fine, when click view specific accordion display listing, url works this: website/jobs#developer , not this: website/jobs/#developer lot more professional on job boards , maintain have on our current site.

i don't want have go every link distributed , remove slash. attaching have done in htaccess not sure affected it. please help!

<ifmodule mod_rewrite.c>     rewriteengine on     errordocument 404 /views/errors/404.php     rewriterule ^(jobs|jobs|jobs)$ views/jobs.php [l] </ifmodule> 

the rewrite rule not match trailing slash

^(jobs|jobs|jobs)$

this rewrite rule will not match url trailing slash, means:

^ # start of match jobs|jobs|jobs # 1 of these strings $ # end of match 

to have match urls trailing slash, needs in rewrite rule:

rewriterule ^(jobs|jobs|jobs)/?$                              ^ slash                               ^ 0 or 1 times - i.e. optional 

professional urls?

website/jobs/#developer lot more professional on job boards

unrelated question, presence or absence of trailing slash doesn't have bearing on how professional url looks.


Comments

Popular posts from this blog

Python Pandas join aggregated tables -

java - Static nested class instance -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -