<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: All about .htaccess files</title>
	<atom:link href="http://www.kashit.org/general-web/all-about-htaccess-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kashit.org/general-web/all-about-htaccess-files/</link>
	<description>home to Ehsan Quddusi</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:44:42 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adrian</title>
		<link>http://www.kashit.org/general-web/all-about-htaccess-files/comment-page-1/#comment-8</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://new.kashit.org/?p=38#comment-8</guid>
		<description>Hi I have a problem that I read could be fixed with a rewrite as follows:

TikiWiki 2.2: The “Multimedia” feature requires a “url” parameter, which is damaged to uXrl by XSS protection. TikiWiki has no way to play MP3 files (XSPF mod seems nonfunctional in 2.1).

{FLASH(movie=&gt;”tikimovies/multiplayer.swf?url=http://yoururl/file.mp3&amp;MODE=AUDIO”)}{FLASH}

Hack workaround: Add a URL rewrite rule to .htaccess which changes a “hack=” parameter to “url=”.

Do you know how I can do this?</description>
		<content:encoded><![CDATA[<p>Hi I have a problem that I read could be fixed with a rewrite as follows:</p>
<p>TikiWiki 2.2: The “Multimedia” feature requires a “url” parameter, which is damaged to uXrl by XSS protection. TikiWiki has no way to play MP3 files (XSPF mod seems nonfunctional in 2.1).</p>
<p>{FLASH(movie=&gt;”tikimovies/multiplayer.swf?url=http://yoururl/file.mp3&amp;MODE=AUDIO”)}{FLASH}</p>
<p>Hack workaround: Add a URL rewrite rule to .htaccess which changes a “hack=” parameter to “url=”.</p>
<p>Do you know how I can do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.kashit.org/general-web/all-about-htaccess-files/comment-page-1/#comment-7</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://new.kashit.org/?p=38#comment-7</guid>
		<description>Great Info!! .htaccess is very powerful but can be tough at first.

A pretty cool .htaccess file I use which is used to prevent random web browsers from accessing folders directly, while allowing them to be accessed via your site. Bassically if someone tried to access yoursite.com/vidoes/1.wmv or something, they would be redirected to a page you specify. But if you had a link at yoursite.com when a user clicks on it takes them to yoursite.com/videos/1.wmv would be allowed. This prevents access to folders/directories and even if a person was to guess the link they wouldn’t be able to access it unless they first came through your site.

I did test this with ie and firefox and it seems to work great in each.

Code:
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com.* [NC]
RewriteCond %{HTTP_REFERER} !^http://subdomain.yoursite.com.* [NC]
RewriteCond %{HTTP_REFERER} !^http://.yoursite.com/subfolder.* [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/subfolder.* [NC]

RewriteRule /* http://www.yoursite.com/index.php [R,L]

Just create a .htaccess and insert that code into any subfolder/directory you don’t want anyone to directly access without coming through your site. like yoursite.com/videos/.htaccess (with the above code)

RewriteCond = yoursite.com (this is your site, subdomains, and subfolders allowed to access)
RewriteRule = the address they are forwarded to if they try to access directly.

Jeremy
dialme.com</description>
		<content:encoded><![CDATA[<p>Great Info!! .htaccess is very powerful but can be tough at first.</p>
<p>A pretty cool .htaccess file I use which is used to prevent random web browsers from accessing folders directly, while allowing them to be accessed via your site. Bassically if someone tried to access yoursite.com/vidoes/1.wmv or something, they would be redirected to a page you specify. But if you had a link at yoursite.com when a user clicks on it takes them to yoursite.com/videos/1.wmv would be allowed. This prevents access to folders/directories and even if a person was to guess the link they wouldn’t be able to access it unless they first came through your site.</p>
<p>I did test this with ie and firefox and it seems to work great in each.</p>
<p>Code:<br />
AuthUserFile /dev/null<br />
AuthGroupFile /dev/null</p>
<p>RewriteEngine On</p>
<p>RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com.* [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://subdomain.yoursite.com.* [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://.yoursite.com/subfolder.* [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://yoursite.com.* [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/subfolder.* [NC]</p>
<p>RewriteRule /* <a href="http://www.yoursite.com/index.php" rel="nofollow">http://www.yoursite.com/index.php</a> [R,L]</p>
<p>Just create a .htaccess and insert that code into any subfolder/directory you don’t want anyone to directly access without coming through your site. like yoursite.com/videos/.htaccess (with the above code)</p>
<p>RewriteCond = yoursite.com (this is your site, subdomains, and subfolders allowed to access)<br />
RewriteRule = the address they are forwarded to if they try to access directly.</p>
<p>Jeremy<br />
dialme.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arselan</title>
		<link>http://www.kashit.org/general-web/all-about-htaccess-files/comment-page-1/#comment-6</link>
		<dc:creator>Arselan</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://new.kashit.org/?p=38#comment-6</guid>
		<description>Really nice dude I was not able to understand the funda of .htaccess but you helped me.
Keep it up. I am lovin it.</description>
		<content:encoded><![CDATA[<p>Really nice dude I was not able to understand the funda of .htaccess but you helped me.<br />
Keep it up. I am lovin it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
