htaccess

  1. BR0C0LLI

    Fix my .htaccess rewrite REGEX code (simple)

    After web migration and new URL architecture, I need to redirect old URLs because I am getting lot of 404. Old URL examples: domain.com/blog/vse-o-produktech/395-vybaveni-a-doplnky-pro-vasi-pergolu domain.com/blog/71-prave-realizujeme/464-kdo-nainstaloval-pergolu-dominiku-haskovi-jagr New URL...
  2. tazarbm

    Why does LiteSpeed Cache always want me to add / replace code in the .htaccess file?

    Hey guys! I'm having a problem with the LiteSpeed Cache plugin, in the sense that it always... ok, maybe not always, but quite often it asks me to add / replace the code below (the code might be different sometimes, but in this particular case it's this one) in the .htaccess file: # BEGIN...
  3. T

    stop software from accessing specifc file

    I was using ads.txt long before it became the standard for publisher ids for site advertising. So I have windows software that download ads.txt file from my server which is supposed to contain text ads. instead now it download ad publisher id entries. Is there a way for example to use...
  4. Bloodseeker

    Need help with htaccess

    Hello, I have this redirection code in htaccess file: It redirects the given page perfectly, but if there's a number or letter after the slash, it won't work. Example: /c/system/8 doesn't redirect. Can you please help me redirect /c/system/ with anything after the slash to /t/system? Regards
  5. P

    .htaccess creation

    Hi, i'm trying to create a powerfull .htaccess to improve security and speed, although server needs to run some modules in php. I will share you my final htaccess to recieve advice from people who have more knowlegde about it than me.
  6. noellarkin

    Wordpress Site Homepage Downloading PHP File Instead Of Showing Page

    This has been happening for a day now. Can't think of any reason, since I haven't touched this site in two days. The home page of the site keeps redirecting to a file download. All other pages work just fine. I've checked HTACCESS and there's nothing out of the ordinary. PHP versions in...
  7. Nody Khan

    About 301 Redirection

    Hello Friends, I have two websites lived For example, abc.com xyz.com Now I just want to redirect only one URL "https://abc.com/hello-world/" to "https://xyz.com/". All pages are lives as it is. but just one URL redirects via .htaccess file. Please help and tell me the .htaccess code...
  8. imonboss

    how to redirect from https to http

    I am not a technical nerd and never faced a problem like this ever before. So, I kinds lost in here. This is something I need to do and I need help from those who have coding knowledge and played with htaccess file before. If i don't do this, i can't access my site at all which sucks due to ssl...
  9. B

    Best .htaccess modification (Discussion)

    Hi BHW, There is so much data around the subject, but still What is the best set of rules/commands, do you prefer php? I would appreciate your feedback.
  10. kurosaki4d

    How to deindex an URL with specific parameter ?

    Hello, While i was doing an audit to my website SEO, i found out a warning for a page that is most of the time blank. Basicaly, this page serves for storing articles for visitors who would like to read their favorite selections later. This is the link: https://mydomain.com/?read-it-later The...
  11. MJ10

    [ASK] VPS HTACCESS

    hello all bhw member i got some problem when using vps digital ocean everything looks ok and the site can access after install apache2 but i have one problem my htaccess file cannot be read in vps system can somebody help me what wrong with that?
  12. kurosaki4d

    Redirect pages of root folder to index and pages of subfolder to index of subfolder

    As the title says, i have the root directory that contains pages and i have another directory that it's called mobile. I would like the pages that are inside the root directory to be all redirected to index.php in root, as for the mobile directory i want all the pages inside it to be redirected...
  13. Justinbullard

    What is .htaccess file & what is use? Why

    About .htaccess file
  14. IAmDaze

    Cloudflare SSL Redirect Loop

    I am using cloudflare with a static page website. I am using htaccess redirect to move all traffic to https but this results in redirect loop. How to solve this? My htaccess: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST}...
  15. N

    How To Block Referrals to My Website Through .htaccess?

    I want to block referrals from a website and it's country level domains from visiting my website. - How can I do that from .htaccess? for e.g: I wanna stop example.ru , example.dk, example.bd, example.in, example.nu and all example.** ...... to stop sending referrers to my website.
  16. fb3003

    blocking robots | htaccess | site speed?

    do you guys practice blocking all robots (except google, bing, yahoo) on your site using htaccess and see an improvement in ranking? reason why i ask about serp improvements, because i know speed has a positive correlation on site ranking. and by blocking those nasty robots, I would assume...
  17. Unreliable Witness

    Blocking crawlers to your PBN? Try redirecting instead

    An ahrefs report is telling me that a blatant PBN 302 redirects to a competitor's site. At first I thought that the competitor might be using the PBN to rank, but if I look at the site as Googlebot I get the same site I see as any a default browser. If I set my user agent to "AhrefsBot", I get...
  18. B

    How to do Hotlink Protection in Wordpress? (Need Help)

    I am using cloudflare Hotlink Protection but it is Block Images in Web cached version of Google. So i have added below code in .htaccess file but it's not working. Hot link Protection RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER}...
  19. J

    How to Redirect multiple affiliate links to a single link ?

    Hello, Lets say i have a WordPress blog. and i have a post url there example.com/1. I want this url to redirect randomly on another urls when someone click. I.e. If User X click first time on example.com/1 -------> Xyz.com If User X click Second time on example.com/1-----> abc.com . . . . N...
  20. illuminateme

    Getting the URLs from htaccess rewriterule

    Have anyone else had to work with an old massive redirect list that's thousands of lines long? Is there a tool/reliable way to grab the origin url and destination url from a bunch of rewriterule from htaccess and dump it into a spreadsheet? or better yet, a tool that can identify and eliminate...
Back
Top