dlang / D-Blog-Theme

WordPress theme for dlang.org/blog
3 stars 3 forks source link

Pretty Permalinks and mod_rewrite #14

Closed wilzbach closed 8 years ago

wilzbach commented 8 years ago

Can't we enable URL rewrites, s.t. we don't need to have the index.php in the URL? Instead of:

https://dlang.org/blog/index.php/2016/06/16/find-was-too-damn-slow-so-we-fixed-it/

we could have:

https://dlang.org/blog/2016/06/16/find-was-too-damn-slow-so-we-fixed-it

There is a pretty extensive guide for Wordpress and they provide copy-paste snippets for Apache2 and Nginx.

mdparker commented 8 years ago

I do this with my personal blogs and even now I just don't see the point. Besides, I don't believe mod_rewrite is enabled on the server and I really don't want to bother Jan with it just to get pretty URLs :)

wilzbach commented 8 years ago

I do this with my personal blogs and even now I just don't see the point.

It would hide the ugly fact that we use PHP ;-)

I don't believe mod_rewrite is enabled

It is ;-)

https://github.com/dlang/dlang.org/blob/master/.htaccess

mdparker commented 8 years ago

Yeah, I just did a phpinfo and saw it was loaded.

mdparker commented 8 years ago

OK. Since mod_rewrite is already enabled, I have no problem with it. All set.

wilzbach commented 8 years ago

Thanks!