... showing all entries tagged modrewrite
Below you will find all posts tagged modrewrite ↓
h4x3d.com does not host any illegal content. Links/Files referred to are for educational purposes only.
Changing Permalink structure (removing datestamp)
January 4th, 2006 by jezTags: code, modrewrite, permalinks, seo, Wordpress
If you used the default permalink structure,
you’d have something similar to:
/%year%/%monthnum%/
%postname%/
now say you want to get rid of the dates
(maybe seo-wise driven?)
you’d have
/%year%/%postname%/
But now all your posts (and post slugs) are outdated,
thus returning 404 or if you got the right
redirection rules return you to some error document.
That’s exactly what I did and troubled with.
Now there [...]
.htaccess cheat sheet
September 12th, 2005 by jezTags: cheat sheet, code, htaccess, modrewrite
Here is a simple cheatsheet for the .htaccess file:
Enable Directory Browsing
Options +Indexes
## block a few types of files from showing
IndexIgnore *.wmv *.mp4 *.aviDisable Directory Browsing
Options All -IndexesCustomize Error Messages
ErrorDocument 403 /forbidden.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /servererror.htmlGet SSI working with HTML/SHTML
AddType text/html .html
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
# AddHandler server-parsed .htmChange Default Page (order is followed!)
DirectoryIndex [...]



