Today's Messages (off)  | Unanswered Messages (on)

Forum: Htaccess Questions
 Topic: URL redirect with percentage sign
URL redirect with percentage sign [message #1942] Fri, 30 July 2010 02:09
sananthv  is currently offline sananthv
Messages: 1
Registered: July 2010
Location: Melbourne
Hi

I recently launched an updated version of my site. For non percentage URL's I am using "redirect" command to redirect URL's.

Currently I am redirecting all URL's which has a percentage sign to a perticular directory. This is because google has indexed some of my joomla site links that have percentage signs. The command i have used is

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /[^%?\ ]*\%
RewriteRule ^. http://domain/folderone/index.php [R=301,L]

Now I have a situation where I want to redirect different URL's with percentage signs to different locations. Example

http://domain/folder%10two/index.php to http://domain/folderthree/index.php

and

http://domain/folder%10four/index.php to http://domain/folderfive/index.php

How should my code look like. Appreciate the help.
 Topic: .htaccess to manage client's FTP folders
.htaccess to manage client's FTP folders [message #1941] Tue, 27 July 2010 19:16
tmcdade  is currently offline tmcdade
Messages: 1
Registered: July 2010
Location: Buffalo NY
I am over my head and I'd love some help.

I have developed a site using wordpress 3.0. http://Maltajo.com

In addition to the site my client would like a restricted FTP access area where he and his clients can share files.

My current solution consists of using Fetch to create a folder in the root directory called public_ftp and within that folder I create a folder for each client. Using the hosts control panel and I create a new username and password protected FTP account for each client relative to the created folder. But I cant see the files directory and the wordpress theme is gives an "not found" message.

ex. http://maltajo.com/public_ftp/clientA/

I'm not convinced that this is the best solution so I am open to ideas. ...but if this the way I need to do it, I believe that I'll need to modify the .htaccess file to allow the the directory to be visible and for the wordpress theme go away.

Will I need an index file in each folder so the page will be look like it is part of the regular site.

I really am confused by this. Your help is greatly appreciated.

thanks,
tom
 Topic: Redirecting Root and Files to Different Locations
Redirecting Root and Files to Different Locations [message #1938] Tue, 20 July 2010 22:03
tempuser123  is currently offline tempuser123
Messages: 1
Registered: July 2010
Greetings,

I'm kinda new to .htaccess and I searched a lot but couldnt understand how to work this out.

What I basically need is this:

I want www.olddomainname.com and olddomainname.com to redirecto to www.newdomainname.com (this is kinda easy on its own ... the next step is the kicker)

I want www.olddomainname.com/anyfileorfolder and olddomainname.com/anything to redirect to : www.newdomainname.com/newsubfolder/anything

Notice that if no file/folder is given, I want the redirect to be to a different path than if a file/folder is given

Is this doable?

Thank you for your help
 Topic: Deny access to .php files to users, but not scripts
Deny access to .php files to users, but not scripts [message #1924] Tue, 13 July 2010 01:05
whoshotdk  is currently offline whoshotdk
Messages: 1
Registered: July 2010
Hi,

Im currently using mod_rewrite to direct all requests to my main index.php file. This file then pulls stuff from a DB and displays content based on the URI the user entered.

This allows me to have URIS like:

mywebsite.com/mypage
mywebsite.com/anotherpage

The main index.php file includes a number of .php files to help make up each page (like 'header.php' and 'footer.php').

All these included .php files are in a subdirectory 'pages'.

This all works great so far; but I've discovered an issue; someone can go to one of the include files (i.e 'mywebsite.com/pages/header.php').

I'd like to stop people getting access to any files within the 'pages' directory or indeed any request that contains '.php'.

After a load of Googling I've tried various bits of code to attain this, for example:

<Files ~ "\.php$">
Order allow,deny
Deny from all
</Files>


However, this then prevents my actual script from including the .php files aswell.

So what Id like to do is allow my main index.php script to include whatever it wants, but stop users from accessing the 'raw' .php files as it were.

The .htaccess file so far:

Options +FollowSymLinks
RewriteEngine on

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript
FileETag none

RewriteCond %{http_host} ^mywebsite.com [NC]
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [R=301,L] 
RewriteRule ^index.htm$ http://www.mywebsite.com/ [R=301,L]
RewriteRule ^([^\.]+)/?$ index.php [L]


Any suggestions for a htaccess newbie are much appreciated!

Thanks
Dave
 Topic: redirecting
redirecting [message #1923] Mon, 12 July 2010 08:16
divyagopan212  is currently offline divyagopan212
Messages: 1
Registered: July 2010
Location: kerala
sir I have a pages display.php,articleName.php and .htaccess..
all the three pages are described below separated
help me in passing querystrings with urls in the page display.php
I wanna get the page in introductuin-value.php..bo querystrings should be displayed
++++++++++++++++++++++++++++++++++++++++++++=
<?php
include("mysql.php");
connect();

$sql="select * from article where article_delete is null";
//echo $sql;
$result=mysql_query($sql);
$row = mysql_fetch_array($result);

?>
<style type="text/css">
<!--
.style1 {font-family: "Trebuchet MS"}
.style2 {font-family: "Trebuchet MS"; color: #CCCCCC; }
.style3 {color: #008080}
-->
</style>


<table width="695" border="1" align="center" cellpadding="3" cellspacing="3">
<tr bgcolor="#663333">
<td colspan="5" class="style2">List Of Articles

</tr>
<tr bgcolor="#663333">
<td width="38" class="style2">#</td>
<td width="219" class="style2">Title</td>
<td width="87" class="style2">Content</td>
<td width="140" class="style2">Added Date</td>

</tr>
<?php
$i=1;
while($row = mysql_fetch_array($result))
{

?>
<tr>
<td class="style1">&nbsp;<?php echo $i;?></td>
<td class="style1">&nbsp;<a href="<?=$row['articleNameMod'] ?>.htm"><?php echo $row['article_Name']; ?></a></td>
<td class="style1">&nbsp;<?php echo $row['article_Content']; ?></td>
<td class="style1">&nbsp;<?php echo $row['article_Date']; ?></td>

</tr>
<?php
$i=$i+1;
}
?>
</table>
+++++++++++++++++++++++++++

.htacces page
RewriteEngine on
RewriteRule ^(.*).htm articleName.php?articleName=$1

+++++++++++++++++++++++++++++++
articeName.php

<?php
include("mysql.php");
connect();
$sql="select * from article";
//echo $sql;
$result=mysql_query($sql);
$row = mysql_fetch_array($result);

?>
<html>
<body>
<table width="443" height="99" border="1" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="427" height="27">&nbsp;<?php echo$row['article_Name']?></td>
</tr>
<tr>
<td height="61"><?php echo$row['article_Content']?></td>
</tr>
</table>
</body>
</html>



These are the pages specified ..But i am not getting the value of the query string in the page articleName.php
could you please help me out in finding the error..or help me in passing querystrings with urls in the page display.php

Thanks In advance

[Updated on: Mon, 12 July 2010 08:19]

 Topic: cookie authorization to restricted folder based on timestamp
cookie authorization to restricted folder based on timestamp [message #1912] Thu, 08 July 2010 17:18
marsson  is currently offline marsson
Messages: 1
Registered: July 2010

Hello everyone...
I have a doubt on creating a .htaccess
here is my Idea:
I want only people accessing from one of my internal pages to be able to access the contents on the restricted folder.
that page generates a cookie with its value being the current timestamp +2 mins.

what I need to do, is for .htaccess to check the value of that cookie, compare it with the TIME_EPOCH, and if it the cookie timestamp is bigger than the current one, allow the access to the folder's content.

Is it possible?
how should I approach that?

Best Regards.
Marcelo Marsson
 Topic: How to redirect http to https EXCEPT for a subdomain
How to redirect http to https EXCEPT for a subdomain [message #1909] Thu, 08 July 2010 13:19
jamhall830  is currently offline jamhall830
Messages: 1
Registered: July 2010
Hi there, I've starting building a lot of websites lately, primarily with Wordpress but I'm learning a lot every day. However, when it comes to the .htaccess file it's a foreign language to me. This forum looks like it could come in very handy and I'm glad I found it.

How can I get a site to use https for everything except a subdomain? for example:

I have a site http://www.example.com which I have redirecting to https. Then I added a subdomain http://demo.example.com.

I just need that demo.example.com to be http and everything else to be https

Hopefully this will be rather simple for someone here.

Thanks!
 Topic: NEW FOR SALE: Blackberry Bold 9000
NEW FOR SALE: Blackberry Bold 9000 [message #1896] Fri, 25 June 2010 10:57
oniltd  is currently offline oniltd
Messages: 2
Registered: June 2010
A dealer and exporter based electronics THAILAND

ALL PRODUCTS ARE NEW COMES in its original

SEALED BOX WITH ALL COMPLETE ACCESSORIES, 18 MONTHS

INTERNATIONAL WARRANTY FROM THE MANUFACTURER, ENGLISH &

SPANISH MANUAL

Below are some of OUR COMPANY PRODUCTS THAT WE HAVE IN

STOCK FOR SALE ...............

NOKIA N900 ...............................$ 300 USD
NOKIA N97 32GB ...............................$ 220 USD
NOKIA VERTU ....................................$ 250USD
NOKIA 8800 ARTE ....................... $ 220SD
NOKIA N96 16GB ............................$ 3230USD
NOKIA N95 (8GB) ........................... $ 190USD
NOKIA E90 .................................... $ 180usd
........ NOKIA 8800 GOLD SIROCCO $ 220USD
NOKIA N95 ................................. $ 160USD
NOKIA N93 .................................. $ 170USD
NOKIA N75 ................................. $ 190USD

APPLE IPHONE 3GS 32GB ..........................$ 230USD
APPLE IPHONE 4G 32GB .....................$ 220USD
IPhone 3G (8GB 230USD )...................$


SONY ERICSSON C905 $ 210 USD
SONY ERICSSON XPERIA X1 $ 220 USD
$ 270usd SONY ERICSSON p5i
SONY ERICSSON P1 for ... $ 220 USD
Sony Ericsson W830i for $ 210 USD
Sony Ericsson w960i ... $ 230 USD
SONY ERICSSON w888i ... $ 190 USD
SONY ERICSSON K770 ....$ 180 USD

Samsung B & O Serenata F318 230USD ----------$
Samsung i8910 16GB HD --------$ Omnia 220USD
SAMSUNG SGH Omnia i900 ......$ 230USD
SAMSUNG serene for .....$ 190 USD
SAMSUNG P850 ........$ 120 USD for
SAMSUNG d500 for .....$ 110 USD
SAMSUNG d600 for ......... $ 140 USD

HTC PHONES

Touch Diamond: $ 200
Touch Pro: $ 210
Touch Cruise $ 230
Touch Dual $ 230
S730 $ 130
P6500 $ 200

BLACK BERRY PHONES:
............... Cost 220usd Blackberry Storm
Cost Blackberry Bold 9000 ........ 230 usd
Blackberry 8310 curve Cost ......$ 230usd
Blackberry Pearl 8100 Cost ... $ 260usd
blackberry 8300 world edition .....$ 260usd
blackberry 8800 Cost .......$ 200usd
.........$ 200usd blackberry 8700Cost
blackberry 8700 Cost ..........$ 190usd


TO CONTACT Interested buyers through our official email AT:

onimitelecom@yahoo.com
onimitelecom@post.com

Thanks,
MGT.
 Topic: Fully Unlock Brand Samsung S5600v Blade @200,BenQ AL26 .$190 and Nokia N98$200
Fully Unlock Brand Samsung S5600v Blade @200,BenQ AL26 .$190 and Nokia N98$200 [message #1884] Tue, 22 June 2010 16:25
lunch2day  is currently offline lunch2day
Messages: 2
Registered: June 2010
Location: UK
MOBILETECH SOLUTIONS LIMITED
We specialize in a wide range of products such as laptops, mobile phones, plasma & lcd tv, mp3 & mp4 players, video games console, digital cameras, dvd players (Etc) at cheap & affordable prices.

We have all the listed mobile phones available in stock and other
models too like Nokia N-series, E-series, HTC phones,Blackberry,Apple
iphone,Samsung and Sony ericsson mobiles

Order from us today and save 10% or more on all your order as we offer the promo of buy 2Unit Get Free Item With Shipping/Discount.

We give maximum guarantee for safe delivery of items bought from us.

COMPANY FULL DETAILS.
Company Name :
MOBILETECH SOLUTIONS LIMITED
Registration#:06503669
Contact Name : SEEDORF JAMES
Email Us At : mobiletechsolutionslimited@live.com


We are one of the leading supplier of high-end products to customers, we deal primarily in genuine and brand new electronics, all items are sourced directly from the manufacturers and carry the manufacturers warranty. We ship 100% of our orders the same business day.

MOBILETECH SOLUTIONS LIMITED strive to offer high-quality products at competitive prices. All of our products are brand new, never used, never rebuilt.

All our product comes with the minimum warranty of 1 full international warranty from manufacturer.

We pride ourselves in the quality of products we offer, our prices, and most importantly to our customer service.

For more informations regarding product and purchasing process send your enquiry to

mobiletechsolutionslimited@live.com
mobiletechsolutionslimited@live.com
mobiletechsolutionslimited@live.com

(BUY 2 GET 1 FOR FREE)

CHECK OUT FOR OUR EXTRA CHEAPER PRODUCT LIST:

Apple iPhone:
Apple iPhone 4GS 32GB--$280
Apple iPhone 3GS 32GB- $240
Apple iPhone 3GS 16GB- $220
Apple iPhone 3G 16GB $170
Apple iPhone 3G 8GB $150
Apple iPhone 16GB $130
Apple iPhone 8GB $120
Apple iPhone 4GB $100

mobiletechsolutionslimited@live.com

BlackBerry:
BlackBerry Bold 9700----$240
BlackBerry Storm2 9550-$230
BlackBerry Storm2 9520-$220
BlackBerry Curve 8520---$200
BlackBerry Tour 9630 ---$195
Blackberry Curve 8900 $170
Blackberry Storm 9500 $140
Blackberry Storm 9530 $155
Blackberry Pearl Flip 8220 $105
Blackberry Bold 9000 $135
Blackberry Curve 8320 $125

mobiletechsolutionslimited@live.com

HTC:
HTC Google Nexus One---$250
HTC Smart------$220
HTC HD2-------$230
HTC Pure-------$200
HTC Tattoo----$200
HTC Touch2----$200
HTC Snap ------$200
HTC Hero -------$200
HTC Touch Pro $155
HTC Touch Diamond 2 $200
HTC Touch Diamond $140
HTC Touch Cruise $140
HTC Touch Pro2 $200
HTC Touch Dual $130
HTC Dream $195
HTC Touch Cruise 09 $215
HTC MAX 4G $200
HTC Touch HD $165
HTC Touch 3G $155
HTC Touch Viva $145
HTC S740 $155

mobiletechsolutionslimited@live.com

T-Mobile Sidekick:
T-Mobile myTouch 3G Fender Edition$230
T-Mobile Tap$200
T-Mobile Pulse$160
T-Mobile MyTouch 3G$155
T-Mobile G2 Touch$170
T-Mobile Sidekick LX 2009$140
T-Mobile Sidekick LX 2008$135
T-Mobile Sidekick LX $105
T-Mobile Shadow $120
T-Mobile G1 $130
T-Mobile Sidekick 3 $100
Juicy Couture Sidekick 2 $80

mobiletechsolutionslimited@live.com

Nokia:
Nokia N900$230
Nokia N97 mini@220usd
Nokia X3@200usd
Nokia X6@200usd
Nokia N97 32GB @200usd
Nokia 6760 slide--$200
Nokia Surge -$175
Nokia N98$200
Nokia N85$190
Nokia N96 16GB $175
Nokia E90 $155
Nokia N97 $195
Nokia N79 $175
Nokia E72 $190
Nokia E71 $180
Nokia E75 - $185
Nokia 8800 Sapphire Arte $205
Nokia N93i $125
Nokia 8600 Luna $145
Nokia 5530 XpressMusic --$190
Nokia 5800 XPress Music-$185

mobiletechsolutionslimited@live.com

Ben Q Phones:
BenQ Siemens-EF81 .....$200
BenQ AL26 ..........$190
BenQ-Siemens P51 .......$230
BenQ-Siemens SL91..... $280
Siemens SL75 BenQ ....$210
Benq Siemens Ef71 ......$190
BenQ-Siemens S88 .....$175
Benq Siemens E71 ......$180
Siemens BenQ SXG75 ....$185
BenQ-Siemens S81 .....$150
Benq Siemens Ef91 .....$220
BenQ-Siemens SF71...$180
BenQ-Siemens P51....$230
BenQ Siemens SL75 BenQ....$210Usd

mobiletechsolutionslimited@live.com

Dopod 838Pro 3G Pocket PC Phone cost $350
Dopod C720W Smart cost $250
Dopod 818 Pro Black cost $230
Dopod D810 (Black) PDA cost $290
Dopod 830 Windows PDA cost $245
Dopod 900 cost $350
Dopod C500 Quadband unlocked cost $240
DOPOD C800 QUADBAND cost $280
DOPOD U1000 QUADBAND cost $450
Dopod C800 cost $280Usd

mobiletechsolutionslimited@live.com

Sony Ericsson:
Sony Ericsson XPERIA X10@240
Sony Ericsson XPERIA X2@220
Sony Ericsson W902 Volcanic @160
Sony Ericsson Idou$150
Sony Ericsson C510 $185
Sony Ericsson P1 $125
Sony Ericsson W995 -$190
Sony Ericsson C905 $145
Sony Ericsson W960 $130
Sony Ericsson G900 $150
Sony Ericsson XPERIA X1 $175
Sony Ericsson C902 $130
Sony Ericsson W902 $145

mobiletechsolutionslimited@live.com

Samsung:
Samsung B7620 Giorgio Armani$230
Samsung S5600v Blade @200
Samsung B7610 OmniaPRO $200
Samsung i8000 Omnia II $160
Samsung B2100 Xplorer $130
Samsung S9110 Omnia HD - --$155
Samsung I8000 Omnia II $220
Samsung B7320 OmniaPRO $200
Samsung B7300 Omnia LITE$190
Samsung i8910 Omnia HD -$170
Samsung i900 Omnia 16GB $165
Samsung Omnia 8GB -$160
Samsung S8000 Jet
Samsung T929 Memoir $195
Samsung T919 Behold $185
Samsung Giorgio Armani P520 $135
Samsung U900 Soul $160
Samsung G800 $155
Samsung F490 $145

mobiletechsolutionslimited@live.com

Eten:
Acer Tempo DX900 ----$190
Eten glofiish X610 $135
Eten glofiish V900 $235
Eten glofiish X900 $185
Eten glofiish DX900 $165
Eten glofiish M810 $155
Eten glofiish X650 $145
Eten glofiish M800 $160

mobiletechsolutionslimited@live.com

LG Phones
LG GD510 Pop$220
LG GW620$200
LG GM750$180
LG BL40 New Chocolate$160
LG GW550 $155
LG Incite$150
LG GD910$150
LG KS500-$190
LG KF900 Prada$195
LG KC780-$200
LG KP500 Cookie$215
LG KC910 Renoir$210
LG KB770$200
LG CB630 Invision$200
LG KS360-$190

mobiletechsolutionslimited@live.com

Video Games Console:
Playstation:
Sony PSP Slim Giga Bundle $105
Sony PlayStation 3 80GB Motorstorm Pack $155
Sony Playstation 3 60GB $140
Sony PlayStation 3 40GB $125

mobiletechsolutionslimited@live.com


Microsoft Xbox:
Xbox 360 Arcade Console -- $115
Xbox 360 Pro 60GB Console -- $145
Xbox 360 Elite 120GB Console -- $165

mobiletechsolutionslimited@live.com

Nintendo:
Nintendo DS Lite -- $70
Nintendo Wii Console -- $125

mobiletechsolutionslimited@live.com

APPLE IPODS:
Apple iPod 60GB (Video) New - $150usd
Apple iPod 30GB (Video) New - $140usd
Apple ipod 80 GB - $140usd
Apple iPod U2 SE 20 GB - $120usd
Apple iPod Photo 60 GB - $120usd
Apple iPod Mini 6 GB - $100usd
Apple iPod 20 GB - $100usd
Apple iPod Photo 30 GB - $110usd
Apple iPod Nano 4GB New! - $90usd
Apple iPod Nano 2GB New! - $80usd
Apple iPod Shuffle 1 GB - $80usd
Apple iPod Mini 4 GB - $70usd
Apple iPod Shuffle 512 MB - $60usd

mobiletechsolutionslimited@live.com


APPLE LAPTOPS
Apple Macbook Air.$600
Apple MacBook (MA700LL/A) Mac Notebook$500usd
Apple MacBook Pro (MA611LL/A) Notebook$500usd
Apple MacBook (MA254LL/A) Mac Notebook$450usd
Apple iBook G3 (M7698LL/A) Mac Notebook..$400usd
Apple MacBook Pro (MA609LL/A) Notebook$550usd
Apple MacBook Pro (MA600LLA) Notebook$500usd
Apple MacBook Pro (MA610LL/A) Notebook$450usd
Apple Macbook Pro (885909119400) Notebook..$445usd

mobiletechsolutionslimited@live.com


Please review our returns policy for more details below:

Before you return your items, you must contact us and receive a Return Merchandise Authorization Number (RMA). Any returns sent without an RMA number will not be accepted by MOBILETECH SOLUTIONS LIMITED We assume all responsibility for the package until it
arrives at our office.

Please include the following information when returning an item:
a1) Your RMA number on your invoice (Do not write on the items box).
2) A copy of your original invoice with the RMA number (inside the shipping box).
3) A note stating the problem if you would like the return for replacement or exchange.

We ship 100% of our orders the same business day from our warehouse, typically the product will arrive within 2days via either Fedex/Ups Courier Sevices.

Well we offer international standard warranty with full acceptance for replacement or full refund of money back.

We give maximum guarantee for safe delivery of items bought from us.

As soon as final conclusions are done from your side kindly contact us as soon as possible so as to lead you on hot to transact with us.


Yours Sincerely

Company Name :MOBILETECH SOLUTIONS LIMITED
Registration#: 06503669
Contact Name : SEEDORF JAMES
Email Us At : mobiletechsolutionslimited@live.com
 Topic: is my htaccess file ok
is my htaccess file ok [message #1882] Tue, 22 June 2010 00:43
mikejs  is currently offline mikejs
Messages: 1
Registered: June 2010
Hi I am trying to use mod_gzip or mod_deflate and I also want to set expired headers this is what my file looks like

is it ok have I missed somthing? thanks m

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]

RewriteCond %{QUERY_STRING} ^(.*)=http [NC]

RewriteRule ^(.*)$ [F,L]

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.saunders-solutions.net$ [NC]
RewriteRule ^(.*)$ http://www.saunders-solutions.net/$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
</IfModule>
# Requires mod_mime to be enabled.
<IfModule mod_mime.c>
# Send any files ending in .gz with x-gzip encoding in the header.
AddEncoding gzip .gz
</IfModule>
# Gzip compressed css files are of the type 'text/css'.
<FilesMatch "\.css\.gz$">
ForceType text/css
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine on
# Serve gzip compressed css files
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.css $1\.css\.gz [L,QSA,T=text/css]
</IfModule>
#Create filter to match files you want to cache
<Files *.js>
Header add "Cache-Control" "max-age=604800"
</Files>
<Files *.js>
Header add "Expires" "Mon, 28 Jul 2014 23:30:00 GMT"
Header add "Cache-Control" "max-age=31536000"
</Files>
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css)$">
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css# Cache static content for 6 months
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/javascript A15552000
ExpiresByType text/css A15552000
 Topic: Problems with my code
Problems with my code [message #1880] Fri, 18 June 2010 14:23
Soul Reaver  is currently offline Soul Reaver
Messages: 1
Registered: June 2010
Hi Guys

Can you take a look at my code and tell me why the image hotlinking is not working for me please?? It is commented out at the moment by the way. As you can see I have tried two versions now and still it fails when I use a hotlink test site to try it out.

Options +FollowSymLinks
RewriteEngine on

#DISSALOWS INDEX BROWSING

Options All -Indexes

#DISSALOWS IMAGE STEALING


#RewriteCond %{HTTP_REFERER} !^http://myequinetrader.com.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.myequinetrader.com.*$ [NC]
#RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.myequinetrader.com/images/ILuvMET.jpg [R,NC]

#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?myequinetrader.com [NC]
#RewriteRule \.(jpg|jpeg|png|gif|bmp)$ http://www.myequinetrader.com/images/ILuvMET.jpg [NC,R,L]

#BLOCKS BAD BOTS

RewriteBase /

# IF THE UA STARTS WITH THESE

RewriteCond %{HTTP_USER_AGENT} ^(aesop_com_spiderman|alexibot|backweb|bandit|batchftp|bigfo ot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(black.?hole|blackwidow|blowfish|botalot|buddy|builtbottoug h|bullseye) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(cheesebot|cherrypicker|chinaclaw|collector|copier|copyrigh tcheck) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(cosmos|crescent|curl|custo|da|diibot|disco|dittospyder|dra gonfly) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(drip|easydl|ebingbong|ecatch|eirgrabber|emailcollector|ema ilsiphon) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(emailwolf|erocrawler|exabot|eyenetie|filehound|flashget|fl unky) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(frontpage|getright|getweb|go.?zilla|go-ahead-got-it|gotit| grabnet) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(grafula|harvest|hloader|hmview|httplib|httrack|humanlinks| ilsebot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(infonavirobot|infotekies|intelliseek|interget|iria|jennybo t|jetcar) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(joc|justview|jyxobot|kenjin|keyword|larbin|leechftp|lexibo t|lftp|libweb) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(likse|linkscan|linkwalker|lnspiderguy|lwp|magnet|mag-net|m arkwatch) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(mata.?hari|memo|microsoft.?url|midown.?tool|miixpc|mirror| missigua) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(mister.?pix|moget|mozilla.?newt|nameprotect|navroad|backdo orbot|nearsite) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(net.?vampire|netants|netcraft|netmechanic|netspider|nextge nsearchbot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(attach|nicerspro|nimblecrawler|npbot|octopus|offline.?expl orer) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(offline.?navigator|openfind|outfoxbot|pagegrabber|papa|pav uk) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(pcbrowser|php.?version.?tracker|pockey|propowerbot|prowebw alker) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(psbot|pump|queryn|recorder|realdownload|reaper|reget|true_ robot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(repomonkey|rma|internetseer|sitesnagger|siphon|slysearch|s martdownload) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(snake|snapbot|snoopy|sogou|spacebison|spankbot|spanner|sqw orm|superbot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(superhttp|surfbot|asterias|suzuran|szukacz|takeout|telepor t) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(telesoft|the.?intraformant|thenomad|tighttwatbot|titan|url dispatcher) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(turingos|turnitinbot|urly.?warning|vacuum|vci|voideye|whac ker) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(libwww-perl|widow|wisenutbot|wwwoffle|xaldon|xenu|zeus|zyb org|anonymouse) [NC,OR]

# STARTS WITH WEB

RewriteCond %{HTTP_USER_AGENT} ^web(zip|emaile|enhancer|fetch|go.?is|auto|bandit|clip|copie r|master|reaper|sauger|site.?quester|whack) [NC,OR]

# ANYWHERE IN UA -- GREEDY REGEX

RewriteCond %{HTTP_USER_AGENT} ^.*(craftbot|download|extract|stripper|sucker|ninja|clshttp| webspider|leacher|collector|grabber|webpictures).*$ [NC]

RewriteRule . - [F,L]

#ERROR PAGE REDIRECTS

ErrorDocument 400 http://www.myequinetrader.com/404.shtml
ErrorDocument 401 http://www.myequinetrader.com/404.shtml
ErrorDocument 403 http://www.myequinetrader.com/404.shtml
ErrorDocument 404 http://www.myequinetrader.com/404.shtml
ErrorDocument 500 http://www.myequinetrader.com/404.shtml

#REDIRECT HTTP TO WWW

RewriteCond %{HTTP_HOST} ^myequinetrader.com [NC]
RewriteRule ^(.*)$ http://www.myequinetrader.com/$1 [L,R=301]


Mark






 Topic: Restrict access time
Restrict access time [message #1877] Tue, 15 June 2010 21:02
a01020304  is currently offline a01020304
Messages: 1
Registered: June 2010
I am looking to restrict a specific ip address from accessing a website. They would only be allowed to view it from 7am to 6pm, is this possible using .htaccess?

if yes, anyone have the settings? as cannot find anything that relates to this.

the server is -5 hours
all other users would be allowed access at all times, its just the one ip that would be limited to specific hours

[Updated on: Tue, 15 June 2010 21:21]

 Topic: htaccess difficulty
htaccess difficulty [message #1876] Sun, 13 June 2010 19:30
mittal  is currently offline mittal
Messages: 1
Registered: June 2010
Location: India
i have created a password for htaccess but whenever i try to login in my htaccess window then it does not let me inside.

my .htaccess file is

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/public_html/wap/images/.htpasswd
AuthGroupFile /dev/null
require valid-user


my .htpasswd is

juman:BaOVgO1.huP2c


can anybody plz tell me wat i have to enter in my username and password.

[Updated on: Sun, 13 June 2010 19:33]

 Topic: Hide URL username password
Hide URL username password [message #1873] Thu, 10 June 2010 08:27
nath2099  is currently offline nath2099
Messages: 1
Registered: June 2010
Hi,

I have a client who wishes to host their videos from my server. I have password protected a directory using htaccess and htpasswd. I can now call pages in this directory using a link from their servers:

username:password@www.site.com[/email]

I am wondering if it is possible to rewrite the url on my end to something like:

www.site.com/client/

so that the username and password is never visible in the url bar in the end users browser?

I hope this makes sense!

Thanks in advance,

Nathan.

I should add that the username and password will change every time the site is accessed.



[Updated on: Thu, 10 June 2010 08:31]

 Topic: Subdomain to subdomain question
Subdomain to subdomain question [message #1870] Wed, 09 June 2010 21:18
none  is currently offline none
Messages: 1
Registered: June 2010
Hi guys!

I`ve got a big problem. Smile I have a multilangual website and I gave different subdomains for every language. But I`ve got a directory which available for all subdomains. I causes dupications by google. I`d like to get a (help) htaccess redirection which can redirect these links:

from:

1. http://www.mysite.com/news/
and
http://www.mysite.com/news.html

2. http://french.mysite.com/news/
and
http://french.mysite.com/news.html

3. http://deutsch.mysite.com/news/
and
http://deutsch.mysite.com/news.html

4. http://polish.mysite.com/news/
and
http://polish.mysite.com/news.html

to here:

http://english.mysite.com/news/
and here
http://english.mysite.com/news.html

And I would like to redirect every links which the news folder contains to my English subdomain.

Thanks!!

[Updated on: Wed, 09 June 2010 21:21]

Pages (20): [1  2  3  4  5  6  7  8  9  10  11  12  13  14  15    »]


Current Time: Sat Jul 31 06:33:43 CEST 2010

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software