Tag Archives: rewriterule

URL Masking

I tough to find info elsewhere in the forums on this…. Are usually best way in order to mask a URL so that end users can’t workout the directory structure of your site I realise that if I were to utilize a frame then I could truthfully have the address inside URL box always stating http: //www. kisstroyer. com but there is certainly surely a healthier way to mask URLs than to make use of crappy frames. Best way to help mask urls is usually to use an exe or even dll for your whole page generation. But any url masking can cause you issues with se positioning. On earth do you explain further how you can generate pages along with exe and dll to get url masking Basically you produce a script which returns whatever is requested through the browser using a few (potentially variable) identifier. eg. Let’s say you might have some files you only plan to be accessible once, or only with a certain time for example. Store these records outside your " public" path on line server. Write the script to reply to requests like this particular: http: //www. instance. com/masking-script. cgifileid=007 by first transmitting the … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Help! Nowhere hidden to put private config file!

On the new website, all I’ve is a actual directory on my personal FTP. I do not have any directories underneath it helping put config files, we don’t want anybody to determine. The people along at the host said in order to password protect the directory the config file is currently in (a subdir in the root) with htaccess, but merely do this then the PHP include()s won’t be able to access it. Possibly there is any other way to make this file private on the outside world With thanks! You could take a step like this: PHP: if  (  $_SERVER’PHP_SELF’  ==  ‘/protectedFolder/protectedFile. php’  )        die(  ‘Private  record,   buddy.   Step  back again. ‘  ); I believe should work. Naturally, you change /protected… on the appropriate folder/file, relative on the *server root*. Ah I see, so should the actual file inside the browser is the private one, it’s going to display the meaning, but if it is a different page as well as private file is just being included, it won’t Because it isn’t really the current page I think I getcha. With thanks, buddy WE wouldn’t even show a message. Just forward them onto for … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

htaccess 301 redirect – v quick Q

Hi all I have not done a redirect using htacces/301 ahead of. So i just planned to check with people here before post implement this, as the htaccess file already has some stuff inside. So, could any person tell me quickly, is this correct (The bit concerning added is for individual page redirects, and also starts after " # FINISH WordPress" ) Code: RewriteEngine With RewriteCond %HTTP_HOST! www\. mysitename\. corp. uk$ RewriteRule (. *) http: //www. mysitename. corp. uk/$1 R=301, L # GET STARTED WordPress < IfModule mod_rewrite. c> RewriteEngine With RewriteBase / RewriteCond %REQUEST_FILENAME! -f RewriteCond %REQUEST_FILENAME! -d RewriteRule. /index. php L < /IfModule> # FINISH WordPress Redirect 301 /uk-female-rock-exclusive-mp3s-contact. html document http: //www. mysitename. corp. uk/ Redirect 301 /uk-female-rock-exclusive-mp3s-music. html document http: //www. thebestmusicshop. corp. uk/mp3-download/1/mysitename/intc. html Direct 301 /uk-female-rock-exclusive-mp3s-shop. html document http: //www. thebestmusicshop. corp. uk/mp3-download/1/mysitename/intc. html Direct 301 /uk-female-rock-exclusive-mp3s-thankyou. html document http: //www. mysitename. corp. uk/ Redirect 301 /uk-female-rock-exclusive-mp3s-video. html document http: //www. mysitename. corp. uk/the-indie-rock-bands-home/music-videos/ Redirect 301 /absolutely-free-music-downloads. html document http: //www. mysitename. corp. uk/best-rock-music-free-downloads/ Redirect 301 /uk-female-rock-exclusive-mp3s-biography. html document http: //www. mysitename. corp. uk/the-indie-rock-bands-home/female-rock-singers-bio/ Redirect 301 /uk-female-rock-exclusive-mp3s-contact. html document http: //www. mysitename. corp. uk/ Truly never seen of which before…. Began seeing I’ve always … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Custom 404 using .htaccess not working – can anyone help?

Hello there everyone basically i followed a quick custom 404 course that told me to include in my htaccess file after which make a. php page such as the rest of my own. php site websites for my customized 404 page, along with save it seeing that notfound. php It worked for a while, but not any more and I dont learn why.. This is it within a new snippet from my own htaccess: Code: RewriteEngine at RewriteCond %HTTP_HOST sanyachinatravel\. com NC RewriteCond %HTTP_HOST! www\. sanyachinatravel\. com NC RewriteRule (. *) http: //www. sanyachinatravel\. com/$1 L, R=301 BErrorDocument 404 /notfound. php/B refocus 301 /general_links/about-us. php URLhttp: //www. sanyachinatravel. com/about/index. php/URL refocus 301 /general_links/customer_care. php URLhttp: //www. sanyachinatravel. com/about/index. php/URL refocus 301 /general_links/about-us. php URL=" http: //www. sanyachinatravel. com/about-us/index. php" Tailor Made Holiday seasons to China as well as Far East/URL (… and many others etc) I’ve uploaded the file to the current thread. The custom 404 is found at: Tailor Made Holiday seasons to China as well as Far East Might anyone help my family with why this doesnt work I originally posted this about this forum thread these so I thought it is helpful to article the link: Personalized … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

.htaccess tutorials/info?

so how exactly does one go in relation to changing the url from http: //*. compage=home to be able to http: //*. com/home so if they type/click the later on it sends them for the former without reverting the url into the former. i want this to utilize automatically to any kind of added pages, not for just the existing pages. Code: < IfModule mod_rewrite. c> RewriteEngine On RewriteBase / #Checks to view if the user is looking to access a appropriate file, #such just as one image or css insurance, if this is not true it ships the #request to be able to index. php RewriteCond %REQUEST_FILENAME! -f RewriteCond %REQUEST_FILENAME! -d RewriteRule (. *)$ listing. phppage=$1 L < /IfModule> This is a link to excellent htaccess stuff AskApache : Crazy Advanced Net Development effectively, i looked all over that site. i didn’t see anything like what we were talking about. i am going to keep looking. thx to the post. Have a shot at here – 5 useful url rewriting examples using. htaccess pretty sure this is what i need however i can’t help to make this work. RewriteEngine On RewriteRule (a-zA-Z0-9_-+)$ page=$1 RewriteRule (a-zA-Z0-9_-+)/$ page=$1 had no effect. … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , | Leave a comment

Stopping Hotlinking Using .htaccess

I will be trying to include this code around my. htaccess file with regard to stopping hotlinking but i will be having the impression angryman. jpeg, pointed out below, replacing a number my images. Can you please indicate is there a problem Regards for your help. RewriteEngine on RewriteCond %HTTP_REFERER! $ RewriteCond %HTTP_REFERER! http: //(www\. )mydomain. com/. *$ NC RewriteRule \. (gifjpg)$ http: //www. mydomain. com/angryman. jpeg UR, L I am just not an. htaccess professional… But I did find this: http: //altlab. com/htaccess_tutorial. html maybe that might give you some ideas. . Cherished Sir, Everyone helped me solve my problem. Thanks a great deal for your help. That was an amazing site for equally coding and testing of hotlinking.

Posted in Web Design | Tagged , , , , , , , , , , | Leave a comment

Server side redirect for mobile/handheld users

Greetings All I’ve been looking into an effective way to redirect people accessing a niche site via handheld devices, to a focused page for mobile or portable users. I’ve found sources teaching me how to accomplish this via javascript and php, but post wondered if anybody knew a server side way eg via htaccess file I have only until now found this : but unsure of the way to use it or whether this is actually the way to take action: (http: //www. alistapart. com/articles/return-of-the-mobile-stylesheet) (I understand that recently there’s recently been news that Google advises to never redirect and to help keep people on the identical url, but for this purpose, i do desire to redirect them) Thank you! Here’s an added complete version. Stylesheet type: Put this in a file called ". htaccess" and save that file from the directory with your primary css file (presumably identified as style. css). There it is possible to create a separate file called cellular. css for cellular devices. Code: RewriteCond %REQUEST_URI! /mobiledirectoryhere/. *$ RewriteCond %HTTP_ACCEPT " text\/vnd\. wap\. wmlapplication\/vnd\. wap\. xhtml\+xml" NC, AND ALSO RewriteCond %HTTP_USER_AGENT " sonysymbiannokiasamsungmobilewindows ceepocopera" NC, AND ALSO RewriteCond %HTTP_USER_AGENT " mininitroj2memidp-cldc-netfrontmotup\. browserup\. linkaudiovox" NC, AND ALSO … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

SSL Certificate

May anyone give some guidance in respect of how to signal the SSL in my page following a security certificate is actually purchased I got told to take advantage of this code and brand the file. htaccess along with put it within my root folder. RewriteEngine On RewriteCond %SERVER_PORT! 443 RewriteRule (. *) https: //www. illustration. com/require-secure/ R Text Edit or maybe Text Wrangler doesn’t often support the. htaccess file format. Thanks. You possibly can download. htaccess out of your server then wide open it with notepad / it is possible to edit. htaccess file on server.

Posted in Web Design | Tagged , , , , , , , , , , , | Leave a comment

EMERGANCY!! Need help

Hi there All. My complete domain host have been hacked. And as each of my websites tend to be Joomla…. (about 15 of them) Uninstalling and reloading the complete domain is some thing I cant can. I’ve come across the actual. htaccess file (unfortunately have no idea about how that works) Does that look okay possibly there is a malware route there www. frixel. corp. uk seems being infected now… < –that domain isnt even dwell yet!!! any help could be most appreciated. Internet marketing crying here! Code: RewriteEngine upon # -FrontPage- < Restriction GET POST> arrangement deny, allow not allow from all permit from all < /Limit> < Restriction PUT DELETE> arrangement deny, allow not allow from all < /Limit> AuthUserFile /home/apollod4/public_html/_vti_pvt/service. pwd AuthGroupFile /home/apollod4/public_html/_vti_pvt/service. grp ErrorDocument 404 /404. shtml AuthName apollodesignstudios. corp. uk IndexIgnore. htaccess */. * * *# */HEADER* */README* */_vti* RewriteCond %HTTP_HOST apollodesignstudios. corp. uk$ OR RewriteCond %HTTP_HOST internet. apollodesignstudios. co. uk$ RewriteRule /$ " http\: \/\/www\. apollodesignstudios\. co\. uk\/site" R=301, L GAK! I’m not very good at htaccess and I do not know Joomla = would you call your host’s technological support for support message out of host. HI Marc My goal is to scan … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , | Leave a comment
Page 1 of 212