Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

How to improve cross domain page calling/loading [on hold]

I am on a LAMP stack with multiple domains and a cPanel back end. I have a domain, www.domainA.com which will eventually be one of numerous domains A-E (not literally A-E, but you get the idea), all ...
0
votes
0answers
19 views

What bots should I block off my website? [on hold]

I'm starting to think that my low income on my adsense enabled website enriched with good information is due to bad bots accessing it and I hear stories that some of them can process javascript. ...
1
vote
1answer
23 views

Would you recommend a 301, 302 or something else?

Ok I have built a resort guide for a summer holiday destination. This is how I have structured the site. www.domain.co.uk/resort-name-a/guide www.domain.co.uk/resort-name-a/nightlife etc. Now, in ...
0
votes
1answer
34 views

Apache / cPanel document root for subdirectory

In cPanel, I'm aware how to set document roots for domains, but I'm trying to have different document roots for a domain depending on the subdirectory. URL | Document Root ...
2
votes
1answer
35 views

Google: Fix Mobile Usability Issues warning - Is Redirect Sufficient?

So recently Google sent out a mass warning to many of us to either fix Mobile Usability Issues on our website or risk having its rankings suffer. Google systems have tested 120 pages from your ...
0
votes
0answers
8 views

How to create semantic URLs using the title of an article/post [closed]

How can I create semantic urls using the title of a page? I know of some ways that semantic urls can be created, such as using Rewrite rules in htaccess, and using subfolders with index files. But ...
0
votes
1answer
31 views

Why can't a network access our site?

So we received an email the other day from a user who has apparently been trying to access our site from their work network for months, to no avail. She's able to get on it with her laptop at home, ...
1
vote
1answer
34 views

apache2 - where/how to put .htaccess files?

I am trying to update/create a .htaccess file for my apache2 server so that my webpages can be accessed without file extensions (e.g. www.example.com/whatis.php can now be accessed as ...
0
votes
1answer
31 views

Google finding non existant URLs on my site and 301 redirects failing

I have been checking webmaster tools and found that Google has picked up some soft 404s. The weird thing is there are no such pages on my site and I dont know how Google has come up with these URLs. ...
1
vote
1answer
42 views

Why Google indexed the preview URL of domain?

I have some problems when the web host updated the plesk desk and the server. I looked to see which pages are indexed site:www.charchas.gr and then I looked for the preview ...
3
votes
1answer
158 views

Hiding folders inside root folder using htaccess

In my server I have the following folder structure and I want to display each folder project link without the folder name. How can I do this? Root Folder -> Subfolder1 -> Project folder ...
2
votes
2answers
133 views

How do I use a htaccess redirect to force www and use the .org domain while maintaining the URL path?

I have found this rule that does about 90% of what I want, but not quite everything. My main goals for the redirect are to 1) force www. 2) redirect .com to .org. This does that, but if I were at ...
2
votes
1answer
55 views

How to remove php extension from pages except search results?

Using htaccess I have these php rules: <IfModule mod_rewrite.c> Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## don't touch /forum URIs RewriteRule ...
1
vote
1answer
35 views

Block dnsmadeeasy.com due to bad bots?

Should I block dnsmadeeasy.com due to bad bots/sites using their dns service? Would this be a scenario of throwing the baby out with the bathwater?
2
votes
2answers
44 views

Getting 301 redirect error in Google Webmaster Tools while using “change address”

So I'm moving my website from one domain to another. In this process I'm using the "change address" function in Google Webmaster Tools on my old-domain.com, "switching" it to / choosing my verified ...
2
votes
1answer
36 views

Redirect a subdirectory to the main domain in htaccess

I have the folowing structure: www.example.com - DE version www.example.com/de - DE version www.example.com/en - EN version I want to be like that: www.example.com - DE version ...
1
vote
2answers
51 views

Googlebot robots.txt access error on HTTPS when redirected from HTTP

This might be a stupid question, but I never came across this issue before and were not able to find any definite answers to this on the web: Our client migrated to HTTPS a few months ago, using ...
1
vote
1answer
30 views

Lowercase 301 Redirects - Site Assets Disappear

I am trying to force all my URLs to be lowercase, but in doing so, I lose the connection to all my site assets. I've added this to my in my .conf file: RewriteMap lc int:tolower And this to my ...
1
vote
0answers
22 views

Cloudflare putting my site in an endless refresh loop

This problem does not happen to all site visitors. The best I can tell, random users of Chrome have the issue but my sample size is way too small to believe that it is only Chrome. However, a few ...
2
votes
1answer
35 views

Redirecting “ugly” urls to pretty ones?

For example to display /id/123 for /urlugly?id=123 I can do RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [L] and apparently for redirect I can add [R] RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [R,L] ...
1
vote
0answers
11 views

What is the proper format for an htaccess redirect relating to https and subdomains [duplicate]

I'm not sure if my syntax is correct here. I'm specifically looking to do this: Redirect all traffic to the root domain (mydomain.com) to a www version (www.mydomain.com). Redirect all http traffic ...
3
votes
1answer
55 views

403 when query string parameter contains an encoded URL

I'm using shared hosting with minimal access to any configuration settings. I've created a more or less empty HTML file, emptypage.html, with the following contents: <!DOCTYPE html> ...
1
vote
1answer
29 views

What is the htaccess code for a clean URL for a user profile page?

I have tried code given on under topic clean URLs using .htaccess, but it is nor working on my website. Actually I am getting static content, but not getting parameters (dynamic content.) My ...
0
votes
1answer
16 views

how to redirect pages to newdomain pages? [duplicate]

hi guys I have a domain named old.com and it has some pages , how can I redirect all those pages to their new address using htaccess? currently only old.com redirects to new.com but old.com/posts/ ...
0
votes
1answer
71 views

403 when query string contains a dot (.) character [closed]

EDIT: did more research, asked new question I dug a bit deeper and realized that the contents of the page are indeed not relevant to this issue. As this question has gotten more and more confusing, ...
0
votes
0answers
10 views

Minimalist RewriteRules but access directories, error pages, etc statically

I am fairly experienced with PHP, but am new to Python. I am generally familiar with mod_rewrite, though I still get mystified by it very often. I am now trying to write a new Python web application ...
1
vote
0answers
22 views

Using .htaccess rewrite rule that doesn't run for specific folders and files

I want to create a .htaccess file that reads index/somepage as index.php?q=somepage. This is how far I got: Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} ...
0
votes
0answers
35 views

How to allow access to subdirectory in website using htaccess?

I am wanting to create a seperate directory for my analytics program to function. My website is www.loosebruce.co.uk and I want my directory to be accessible as www.loosebruce.co.uk/analytics The ...
0
votes
0answers
17 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root ...
1
vote
2answers
35 views

redirecting some parts of a url

ok let me try once again this link [www.mgdezigns.com/cards/festive_silver_purple_ornament_holiday_cards_postcard-239887577090743570.html] needs to be redirected to ...
3
votes
0answers
66 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
2
votes
1answer
54 views

Force https and no www using htaccess

This question has been asked a million times before but my problem is that this still doesn't work for me, regardless of what code I use so I was wondering if I could have some help perhaps? This is ...
0
votes
0answers
28 views

How can I change rewrite base using .htaccess, from my root directory to a folder?

My issue here is that I have a folder called "project" on my server, for a cms that I use. However when I click on a link in that file for example about.html, it loads a file outside the folder on the ...
2
votes
2answers
96 views

404 not found errors when using Modx CMS in a subfolder

I have installed Modx CMS on my hosting provider, but instead of installing it on my root directory where it usually goes, I put it in a folder on the root directory called makeabio. directory loads ...
1
vote
1answer
156 views

How to redirect URLs with percent encoded characters and query strings?

I have these URLs: http://www.example.com/example.html%20text-decoration:%20none%E2%80%9D%3Eexample.com%3C%20%3C/i%3E%3C/span%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Ctable%20bgcolor= ...
0
votes
0answers
35 views

How can i do multiple 302 redirects in htaccess?

I'm currently using the following to redirect only 3-4 pages to new a site # Use PHP5.4 as default RewriteEngine On RewriteRule ^news1\.html$ https://www.example.com/news1.html [R,L] RewriteRule ...
0
votes
0answers
12 views

URL rewriting removing multiple url variables and replace them with slash [duplicate]

How can I rewrite my URL from index.php?m=feb&p=news to index.php/feb/news
2
votes
2answers
80 views

htaccess force HTTPS except one page

This is my current .htaccess file: RewriteEngine On ErrorDocument 404 /404.html # 1 RewriteRule ^extra/([0-9]+)/(.*).html?$ pages.php?do=view&id=$1 RewriteRule ^special-bonus/([0-9]+)/(.*).html?$ ...
2
votes
2answers
115 views

How can I use .htaccess to respond with 403 forbidden status for URLs that contain a query string?

Some bots have been crawling my site for every link that ends with: ?utm_source=dlvr.it&utm_medium=twitter I haven't checked out its IP. Then other bots (10+) follow the link rules ...
1
vote
1answer
31 views

Should I block ftp & mail in urls?

Should I block ftp & mail in urls that shows up in the Latest Visitors Logs? Are they a bot, hacker or misconfigured server? Examples: ftp.somesite.com, mail.somesite.com IF so; how would I ...
4
votes
2answers
158 views

GoDaddy: RewriteCond in .htaccess not working with “beginning of the line” (^)

I have .htaccess containing RewriteCond and RewriteRule. It used to work just fine (it's been a long time since I last checked), but now it has stopped working. I have narrowed it down to the ...
1
vote
0answers
39 views

Enable pagespeed_module in Godaddy’s Deluxe Linux Hosting

I try to enable pagespeed_module in Godaddy’s Deluxe Linux Hosting, the entire .htaccess is as below, <IfModule mod_rewrite.c> RewriteEngine On ## Forward non www to www RewriteCond ...
1
vote
1answer
28 views

How can I disable the certificate/SSL handshake on the 'www' version of my site served by Apache?

We use SSL on the https://www version of our website. Now I would like to disable the SSL connection on the https://non-www version of our website, so the result is: https://non-www => SSL ...
1
vote
1answer
26 views

Write htaccess rewrite rule which should be point to a directory which is not existing in app directory structure

I need to write a rewrite rule so that the url should be point to a directory which is not existing in the application directory. In WordPress all admin process/code in wp-admin, so someone try to ...
1
vote
2answers
107 views

Why does my .htaccess work for all browsers but Internet Explorer?

The code .htaccess below is working on all browsers, except for IE (I tested it on IE10 and IE11). The goal is to redirect all HTTP traffic to HTTPS, but IE seems to ignore it. Does IE need specific ...
2
votes
1answer
82 views

HTTPS redirect doesn't appear to follow .htaccess RewriteRule, how can I fix this?

I am redirecting example.com to sample.com/?example, so that I can have a modal popup saying, example has changed its name to sample. It works fine for HTTP redirects from http://example.com, and ...
2
votes
3answers
82 views

How do I enable compression to reduce the file transfer size on GoDaddy?

I have hosted one of my website on godaddy.com. How do I enable compression to reduce the file transfer size? I need to compress the .css and .js files. I tried the following but it doesn't work : ...
1
vote
1answer
54 views

IP Address is only 1 period

IP Address is only 1 period on a shared host. How do I block that in htaccess? The IP Shows: . /blog/ 1/30/15 11:56 AM success 200 Mozilla/5.0 (Windows NT 6.2; WOW64; rv:35.0) ...
10
votes
1answer
184 views

How are web applications like Tumblr, WordPress.com and Blogspot able to create subdomains for users so fast?

I am curious as to how web-applications are able to create sub-domains instantly for new users, for example, newuser.wordpress.com, or example.blogspot.com. If I need to create a new subdomain for a ...
2
votes
2answers
82 views

Browser shows IP address instead of my domain name when using Google Cloud

I recently bought a domain name from GoDaddy. I have a web server running in Google Cloud with a static IP. In the DNS configuration in GoDaddy, I added an A record (@ -> To the static IP of the ...