How To Enable / Use .htaccess / Nice permalinks in Apache Web Server on WindowsOctober 23rd, 2006 .htaccess is a web server directive file populalrly used in Apache Web Server in Linux / Unix environment. In windows environment there is a simple way to enable and use .htaccess.
Cool SEO Redirection Feature in WordPress 2.3.xFebruary 6th, 2008 I accidentally discovered a super-cool re-direction feature embedded in WordPress 2.3.x. Any blog may have multiple url pointing to the same blog.
How To Run PHP in HTML PagesJuly 28th, 2006 This technique will only work if your Apache server has PHP enabled (how to test php support in apache http server) and .htaccess enabled. In the root directory of your html files create a file named .htaccess.
Nginx: How To Redirect /index.php To / To Avoid Content DuplicationAugust 8th, 2008 Normally any website that responds to /index.php also responds to /. This has the potential to duplicate content.
How To Use .htaccess to Prevent Apache HTTPD Directory ListingMarch 16th, 2008 Apache HTTPD servers are configured by default to display directory listing, when index files like index.htm or index.html of index.php etc. are not present in the directory.
3 Ways To Selectively Execute HTML Files Using Apache HTTP ServerJanuary 14th, 2007 A very simple way to execute HTML files is by telling the server to parse html files for SSI commands. To do it simply add the following lines to your .htaccess file:
AddType text/html .html
AddHandler server-parsed .html
This has the downside of processing all the html files in that directory and its subdirectories.
Simple .htaccess Rules To Block SpammersJuly 24th, 2006 You can easily and effectively use your .htaccess file to easily and effectively block comment and referrer spammers targeting your blog(s). If you are using WordPress you can also use my Referrer Bouncer plugin, which is much simpler, to block referrer spammers.
Apache HTTPD: How To Turn Off Index Listing in Directory & Sub-Directories; Protect WordPress wp-contentApril 13th, 2008 In Apache HTTPD server normally when you have no index or default page in a directory, a visitor may be served with a full list of files in that the directory. This could pose a serious security risk.
Furl is destroying Google rank of websites with 302 redirectJune 11th, 2005 In Furl when you visit any individual's archive page you will see that the sites are not directly referenced to. They are redirected from a jsp script using the dreaded 302 redirect.
How To Use XDForum in WordPress Blogs With Nice PermalinksOctober 30th, 2006 XDForum (example: Anaconda Forum) is a nice basic forum software which works seamlessly with WordPress blogs (download our free theme and plugins). Unfortunately it works out-of-the-box with default permalinks only.
mod_rewrite Not Working in .htaccess - SolutionJuly 10th, 2006 I faced a hair-tearing problem. mod_rewrite was loaded and yet it was not working in .htaccess files (and httpd.conf initially).
Ngnix: Solution for Directory Resolution Problem in Virtual HostingJuly 9th, 2008 Nginx displays a peculiar but logical behavior when handling directories specified without the ending slash. For example you have a directory like http://www.example2.com/dir/.
How To Run phpBB on Nginx With Virtual HostingJuly 10th, 2008 We now have our phpBB forum running on Nginx web server, a high quality and significantly better performing web server than Apache HTTPD. Soem of the challenges we faced were:
We use nice permalinks in the forum so there are lots of apache httpd rewrite rules in .htaccess files which had to be converted to nginx format.
The Backend of Tribal FusionNovember 9th, 2005 I was in Drudge report when I saw an advertisement spot occupied by advertisement giant TribalFusion filled with Apache error message instead. The error message was rather interesting.
How To Use Apache HTTP WebDav Server With Windows XP ExplorerJanuary 24th, 2008 You have two options. Either you tear your (remaining) hair looking for solution on the web and trying different changes to Apache Web Server or Explorer even try magic incantations (alohamora?).
December 22nd, 2008 at 4:13 pm
Hi,
that don’t permit me to use my website without DNS.
I’m in a “extremely incompetent hosting company” situation
Now I’ve put a webserver APACHE on my PC always on with static IP and I’ve forwarded the DNS * and @ to my IP to get the request without www for my website and “redraw” them with http://WWW.
I have some problems in doing this.
For now I’ve tried this:
$server = $_SERVER['SERVER_NAME']; header(’Location: http://www.’ . $server);
but doesen’t work with every page (i.e. http://website.ext/* for every possible string in *).
Can you suggest me how to fix this problem?
I repeat, I have an apache webserver so I can also modify settings in apache if is not possible to do this only with PHP.
Thanks so much.
PS: It can be better if this fix works independent by domain name, so I can help people with same problem.
For knowing, the hosting company is TopHost.it
I remember you that my website is hosted OUTSIDE my pc! SO I need only a REDIRECT
December 22nd, 2008 at 4:13 pm
Hi,
that don’t permit me to use my website without DNS.
I’m in a “extremely incompetent hosting company” situation
Now I’ve put a webserver APACHE on my PC always on with static IP and I’ve forwarded the DNS * and @ to my IP to get the request without www for my website and “redraw” them with http://WWW.
I have some problems in doing this.
For now I’ve tried this:
$server = $_SERVER['SERVER_NAME']; header(’Location: http://www.’ . $server);
but doesen’t work with every page (i.e. http://website.ext/* for every possible string in *).
Can you suggest me how to fix this problem?
I repeat, I have an apache webserver so I can also modify settings in apache if is not possible to do this only with PHP.
Thanks so much.
PS: It can be better if this fix works independent by domain name, so I can help people with same problem.
For knowing, the hosting company is TopHost.it
I remember you that my website is hosted OUTSIDE my pc! SO I need only a REDIRECT