Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
2answers
1k views

How long does Google Webmaster Tools take to index a website?

How much time does Google Webmaster Tools take to index a page? Analytics took around 24 hours to get info from the site, but since this is indexing, I guess it might take a little bit more than that. ...
0
votes
0answers
44 views

cPanel redirects not working on extensionless files

I'm trying to redirect the address http://example.com/newsletters/January%20Newsletter%20 to http://example.com/newsletters/JanuaryNewsletter.pdf using cPanel's redirect manager, but it doesn't seem ...
2
votes
1answer
85 views

Redirect URL with query string to homepage

I can't figure out how to make users visiting my website using links like: mysite.com/?ref=XXXXXXX see the homepage instead of a completely blank page. I tried using htaccess but I can't figure out ...
1
vote
2answers
994 views

Remove .php and id from URL and replace with slash

I have tried lots of URL rewrite rules in .htaccess but I am stuck now. I have to change this URL: products.php?id=31 to products/31 I have used: Options +FollowSymLinks -MultiViews ...
4
votes
2answers
109 views

Prevent Google from listing hotlinked images for other sites

I am hosting several domains on my server and hotlink images accross various domains. However, I have found out that in Google searches, the images are listed as originating on the site where the ...
0
votes
1answer
141 views

Remove query string from 301 redirect URL

I'm having some trouble with redirects and I haven't been able to get this to work. I want to make http://www.mysite.com/seasonal/christmas?p=15 redirect to ...
2
votes
1answer
75 views

Prevent Google Indexing SubDomains

I have cPanel Hosting with only 1 IP. I'm in the process of pointing all my TLDS over to this server. I have created 'Addon Domains' and all the folders from which it creates are located in sub ...
2
votes
1answer
70 views

Inserting WordPress in a site with .htaccess Rewrite Rule

I want to insert a WordPress blog in a website which is programmed in PHP and that uses includes() to select what content to show, and that uses .htaccess Rewrite Rule to get friendly URLs. The ...
1
vote
0answers
205 views

Bot crawling my site, blocked it, now it's back and can't stop it [closed]

I had a bot of some sort crawling my site like crazy for the last day or so. It says in Google Analytics that it's from San Jose in the US. The IP addresses that appeared in the access logs were ...
1
vote
1answer
116 views

Rewrite URLs not working - wrong method or conflict?

I've been at this for about an hour now and I'm not having much luck. htaccess files are quite new to me, so I'm obviously doing something very wrong. Current htaccess content, which I need to keep: ...
3
votes
1answer
889 views

Using .htaccess to set a cookie and 301 redirect

I currently have in my .htaccess: RewriteRule ^$ http://chfmaine.com/ [CO=moved:yes:chfmaine.com:1/,R=301,NE,NC,L] I was basing this off of this post. That's a lot more than I need but the setting ...
2
votes
1answer
377 views

Rewrite rule not working for redirect in subdomain hosted in a subdirectory of the main site [closed]

I am running a WordPress network. This means there are multiple websites produced by one installation of WordPress. Each website is a subdomain of the parent website. WordPress handles the creation ...
2
votes
1answer
286 views

URL/Crawl Errors continue to increase after pharma hack

I'm working with a site that was hacked a couple of months ago and was sending out a ton of spam. The problem seemed to have started with a dormant WordPress blog that was part of the site (so the ...
2
votes
1answer
97 views

Website won't work without www on mobile phone

I have updated the .htaccess file so that when someone types in example.com, they are redirected to www.example.com. This works great on my computer, but when I try it on my cell phone is does not ...
2
votes
2answers
180 views

How to set restrictions on my website?

Currently my website is under maintenance. I want to be the only person who's able to access/view the website online until I finish maintenance. How to set restrictions to others ? I hate stalkers.
0
votes
0answers
15 views

Main index redirect to sub folder (e.g. domain.com/site) [duplicate]

Main index file is at mydomain.com/site I want to do a redirect from mydomain.com to mydomain.com/site. What is the most google-friendly way to do this?
1
vote
1answer
260 views

htaccess redirect for directory listing to virtual host on a local MAMP stack

For my local dev environment, I have just upgraded from MAMP to MAMP Pro so that I can easily create virtual hosts without getting too involved with configuration files. Server names will be formatted ...
1
vote
2answers
379 views

Redirect link of old webpage to new webpage in Joomla 2.5

I have modified my website www.vidyaniketan.in. It is a Joomla 2.5 site. When I search for it in Google by URL, there are several sub-links displayed (e.g., "ABOUT US"). this links to the old webpage. ...
2
votes
2answers
150 views

How to prevent JavaScript directory access with htaccess

I have a website like http://example.com but the problem with it is that people are able to get access to my JavaScript by pointing a browser to http://example.com/js/. I have little knowledge of ...
3
votes
1answer
93 views

Moving a WordPress site to a new domain - need help with an Apache htaccess URL rewrite rule

I'm helping to move a WordPress site from one domain to another, which includes a change in permalink structure. I know I can use a .htaccess entry, but I'm not that well-versed (yet) in regular ...
0
votes
1answer
75 views

Remove Lots of index pages from google bot from same directory.

My question is about Google bot, seo and webmaster. may be this is not right place for ask, but if person not know so where he place his question he doesn't know!!! If you know my question's answer ...
1
vote
1answer
157 views

Rewrite rule for friendly URLs to index.php is not working from htaccess

Trying to get SEO Friendly URLs to work for my website using the following htaccess: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
1
vote
1answer
686 views

I get huge bandwidth transfer from some unknown bot Unknown robot (identified by 'bot*')

I get huge bandwidth transfer from some unknown bot Unknown robot (identified by 'bot*').There are ways to block it via htaccess or other means. The question is whether to block it for website safety ...
3
votes
1answer
203 views

Redirect www to non-www using Apache htaccess does not work

I have this in my .htaccess (modified from the default Drupal .htaccess): RewriteCond %{HTTP_HOST} ^www\.website.com\.com$ [NC] RewriteRule ^(.*)$ http://website.com/$1 [L,R=301] In theory this ...
2
votes
1answer
662 views

Apache htaccess results in files being downloaded instead of displayed

So I had this "beautiful" website that did exactly what I wanted it to do. Then I shut down my PC, reboot and...the pages just download now instead of being displayed. I re-installed XAMPP and ...
1
vote
2answers
183 views

Rewrite using .htaccess results in too many redirects

I'm currently creating a webpage which requires rewrites to look nice. The URL is: u.{my_site}/get.php?fid={ID}. The URL entered should be: u.{my_site}/{ID}. Because I'm bad (and new) at rewrite ...
1
vote
1answer
83 views

Redirect multiple files using .htaccess

I have a lot of files with a lot of sub directories which I moved one folder up, so, say, instead of example.com/cdn/folder/folder/file.html, it now looks like this ...
2
votes
1answer
102 views

What is correct syntax for .htaccess 301 redirect of query based URL to new URL?

I wish to set up some 301 redirects to new URLs and I am trying to do this with the redirect facility in cPanel. For some reason the requests are not being processed correctly and I am guessing that ...
3
votes
1answer
622 views

How can I redirect old WordPress URL (with a query string) to new URL using .htaccess?

I transferred my WordPress site to static HTML website, but some other website have a link to my old WordPress site mysite.com/?page_id=1103. I want to redirect all traffic to new URL which is ...
1
vote
1answer
110 views

URL is generating a /#!/splash-page

My site for some reason is generating a shebang - /#!/splash-page on the URL. For example when I type www.modernvintage1005.com, the browser returns www.modernvintage1005.com/#!/splash-page and every ...
0
votes
1answer
65 views

Possible to drop the original query parameters entirely in a rewritten URL?

Original URL looks something like domain.com/filename.php?id1=333&id2=444. Desired rewritten URL is something like domain.com/my-rewritten-url. I can imagine creating a lookup table with columns ...
1
vote
3answers
84 views

Can secret URLs be used to protect files?

I would like to know if I can offer private downloads in my website (only available to certain users) by placing all the files in a /download folder and make sure it doesn't show the index of all the ...
1
vote
1answer
50 views

Configure htaccess to show index.php as the default page instead of permissions error

Having a problem with my .htaccess. I have this to secure all my documents: Order Deny,Allow Deny from all Allow from 127.0.0.1 <FilesMatch "\.(htm|html|css|js|php)$"> Order Allow,Deny ...
0
votes
2answers
85 views

The number of soft 404 errors is increasing because of redirects to the home page

I have an increase in soft 404 errors. Using Apache in my .htaccess file I have: Redirect 301 /test.html‎ /page/pop/test Redirect 301 /about.html‎ /about I have also tried: Redirect 301 ...
0
votes
1answer
102 views

Perl script rendered in browser as code through symlink - fine when accessed directly

I have a Rails 4 app that has some views that post to Perl cgi scripts. The perl scripts are accessed via a symbolic link to a folder called "cgi-bin". When I navigate to a perl script through the ...
0
votes
1answer
46 views

Webserver insists on opening “blog1.php” instead of “index.php”

I'm at my wits' end. I have just ripped out a website and in the process of rebuilding everything. Previously, the 'home page' of the website is a blog, with the address ...
1
vote
1answer
394 views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
0
votes
0answers
28 views

Restricting A Directory Through .htaccess

I'm trying to put all of my FTP accounts into a folder on /public_html/ftp and password protect it so search bots can't crawl their private files. I'm also trying to redirect all site traffic from the ...
2
votes
3answers
130 views

Different authentication for HTTP POST and GET requests in Apache

I want to authenticate for POST requests for http://path/to/logical/abc.xml (but not GET requests to that URL). How do I put constraints like this in place? The paths are logical and location ...
2
votes
1answer
176 views

Restricting post method and authentication to specifc URL paths in Apache .htaccess

I shall start with an example. I want to restrict to POST requests only for http://path/to/logical/abc.xml and restrict to GET only for http://path/to/logical/def.xml. How do I put constraints like ...
0
votes
1answer
39 views

.htaccess 301 Redirect [duplicate]

How do I make it so all traffic is directed for the entire site and all subdirectories from non-www to www Here is my .htaccess contents: RewriteEngine on <IfModule mod_suphp.c> ...
1
vote
1answer
93 views

Would phpBB break if I move it from one folder to another? Can I use mod_rewrite to redirect requests for that forum from old folder to new one?

Please note that I have installed dynamic web pages (PHP) in the directory *public_html/old/* in order to create the web site www.example.com. Actually I have created a PHPBB forum and thus the URL of ...
0
votes
1answer
280 views

Using Apache's rewrite module to set up local host names for development

I have several websites on my development machine under Apache's htdocs folder. Apache Directory root is htdocs, but I want to be able to access each different site there by individual domain names. ...
0
votes
2answers
59 views

htaccess 301 redirect for payment page

I have a client who currently runs a venue and has ticket purchases made available through a third party. The way the site currently works is that there is a standard href in the nav menu to the ...
2
votes
2answers
3k views

.htaccess language redirects with SEO-friendly URLs

How do I setup my .htaccess file to detect several languages, and redirect them to specific SEO-friendly URLs? Basically every URL needs to go to index.php?lang=(...). So, for English language ...
2
votes
2answers
143 views

Replacing an existing website – SEO considerations for broken links?

I have built a new website to replace a client's existing company website on the same URL. The content is entirely different, and none of the page links are the same. Do I have any issues to worry ...
0
votes
1answer
213 views

Password protecting dynamic URLs in Apache

I am handling many logical files request using the Apache server. To make the path simple I have used mod_rewrite in the httpd.conf. Now I am planning to enforce authentication on these logical file ...
2
votes
2answers
98 views

301 redirects and non-existent directories

I just wanted to clarify something; my boss often messes up and tells a customer to go to a specific directory; i.e. mysite.co.uk/directory/ instead of the actual correct URL ...
0
votes
2answers
132 views

prevent access via .htaccess *TO* a given hostname

I have a website which is accessible via several hostnames. I would like to put something in an .htaccess file that would simply block any request requesting a particular hostname. For example, say ...
1
vote
1answer
113 views

How to set up a single IP blocklist for multiple sites hosted on the same account

When running multiple sites on the same hosting account, one might find that an attacker has attempted to breach one site. A webmaster may want to block the IP address from all sites hosted in the ...