Welcome to h4x3d.comh4x3d.com home to Julian 'jez' Klewes


... showing all entries tagged modrewrite

Below you will find all posts tagged modrewrite

Should you not find what you were looking for, consult the Sitemap or browse the detailed Archives. The search is at the top right!

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 jez

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 [...]

Shown above ↑ is only an excerpt: read more

.htaccess cheat sheet

September 12th, 2005 by jez

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 [...]

Shown above ↑ is only an excerpt: read more



Top
advertise
advertise

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

solarVPS.com - reliale enterprise hosting
you know the game, get in touch with me
3