Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

2
votes
1answer
34 views

Handling APACHE file caching

I have used .htaccess to cache images, css and javascript files on my server for up to a month. My problem is that some users get updates that I made recently and all works normally while some user ...
0
votes
0answers
39 views

domain and subdomain working with drupal

I have a domain let its called www.example.com and I have a Drupal instance of this as a subdomain called dev.example.com. example.com is place directly at the root of public_html while the Drupal ...
5
votes
3answers
167 views

Organizing website files

I want to start creating my website but I have a few questions. http://website.com/directory/webpage - in this kind of website, it does not display a .php or .HTML extension at the end. How to ...
0
votes
0answers
36 views

Joomla .htaccess - images gone

I opened a new folder inside my Joomla 2.5 installation "Images" folder called (/images/Icons). In it was a google maps icon and a .htaccess file with this content Header set ...
1
vote
1answer
29 views

Trouble reading htaccess canonicalization

I just took over development of a site and am having trouble figuring out the canonicalization rewrite rules (not my forte). I've pasted the code below. The first bit seems straight-forward enough, ...
1
vote
1answer
134 views

edited and reversed changes on .htaccess - site starts redirecting to .comindex.php/

Site is a Joomla 2.5 site. I wanted to add a non www to www redirect to the htaccess file, did so, then the redirection went mad, reversed but still the site redirects. When i click view site in ...
0
votes
0answers
110 views

How to allow a Subdirectory to work and stop redirecting?

I run Drupal on a webserver in the root www directory. I have added another application in a www subdirectory (Piwik). When I try to navigate to the subdirectory app, I get this error message "The ...
1
vote
1answer
42 views

Host website on UNIX, but email on Windows?

Client has web hosting and email hosting from one web provider. Their email hosting is integrated with their systems for their office — an Exchange server (located on their premises). Both are on a ...
1
vote
0answers
99 views

htaccess returning 404 errors on some URLS on website

I have a .htaccess file on my main directory on my website, which basically allows pretty urls (example.com/index instead of example.com/index.html) and it will redirect to a pretty url if someone ...
2
votes
1answer
166 views

Redirects On Image Files to Counter Google Image Gallery

The recent update to the way that Google displays images appears to have resulted in a significant drop in the traffic reaching the actual pages of our website. We are considering potential solutions ...
2
votes
1answer
48 views

Which way to forward alternate domains?

I have a few alternate domains that I want to point to my main domain: Main: awesomewebsite.com Alternates: awesomewebsite.net, awesomewebsite.co, awesomewebsite.me Which is the best way to forward ...
0
votes
1answer
89 views

block libwww-perl on windows server 2003

Could anyone tell me how to block access to a website for "libwww-perl" agents. Can only seem to find .htaccess solutions. Many thanks john
3
votes
1answer
96 views

301 redirects… www. > http … the entire sitemap

I submitted a duplicate sitemap some time back to incorporate the www. addresses when I saw my site was not directing there when I typed it directly in the address bar. As I have edited my site and ...
0
votes
1answer
72 views

How to remove www from both http and https

I've got an ecommerce site where we're have some reports (random) of the cart not operating correctly. I think it might be due to removing www not working with https my current htaccess code looks ...
2
votes
1answer
90 views

Removing file extensions off the url

I am looking for a way to remove the extensions off the end of the Url. So say for example www.example.com/about.html. This would change to www.example.com/about I've looked around and searched for ...
3
votes
2answers
86 views

Redirecting WWW.website.com to website.com

I ranked my site at Nibble.com and i was going through everything, checking for ways to improve my website, and I noticed that www.website.com was classed as a duplicate of website.com. How do I ...
2
votes
2answers
61 views

My .htaccess entry is not working

The below are all my .htaccess entry: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.acethehimalaya\.com$ [NC] RewriteRule (.*) http://www.acethehimalaya.com/$1 [R=301,L] redirect 301 ...
3
votes
1answer
515 views

How to redirect specific url to 404 in htaccess?

I want to redirect only one specific URl (ex. mypage.com/1234/page/) to error page 404. How to achieve it in htaccess?
1
vote
2answers
261 views

“File does not exist” in apache error log when mod_rewrite is using

I am getting below error in server log, when re-writing the urls. [Fri Jan 25 11:32:57 2013] [error] [client ***IP***] File does not exist: ...
2
votes
2answers
100 views

Does https affect me from being indexed?

In my .htaccess, I am forwarding all non secure traffic to https: RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://site.com/$1 [R=permanent] My website still hasn't been indexed yet and ...
1
vote
1answer
73 views

Redirect www to non-www only for https://

I can't seem to find a nice way to redirect https://www.x.co.uk to https://x.co.uk whilst letting http://x.co.uk and http://www.x.co.uk keep whatever they want. Could anyone lend a hand? I have ...
4
votes
1answer
134 views

How to externally host a mobile website?

I've built a cool mobile website/app using JQuery Mobile. I want to offer that to clients, but I want to use my own hosting. Here's what I want to do If a user uses a mobile device to visit ...
2
votes
0answers
42 views

Replacement for DirectoryIndexRedirect for older versions of Apache

DirectoryIndexRedirect is available in version 2.3.14 and later. (mod_dir) Is there an alternative method for older versions? I have different DirectoryIndex directive sets for a lot of directories ...
1
vote
2answers
132 views

How to setup up .htaccess rewrites for http and https on the same site?

Im having some issues with htaccess rewrites i need to redirect different parts of my site to https rather than http, for example login and news sections. Im not sure how to go about doing this in the ...
2
votes
1answer
332 views

How to make Htaccess file call external IP block lists?

Well, I don’t know if this is an easy thing to do, but I haven’t figured it out yet. Instead of continually updating my Htaccess file with newly updated country IP block lists (because my htaccess ...
1
vote
1answer
153 views

How can I set a 410 redirect in htaccess

I recently upgraded a website from aspx to a drupal site. I never 310'd 301'd the old pages which are gone. The old aspx pages are still showing up as 404 error in google webmaster. I have created a ...
2
votes
1answer
110 views

How do I use htaccess to make a short URL to a MediaWiki page?

I'd like to rewrite /liam to /index.php/Liam_Edwards-Playne. I've currently written this below in the appropriate .htaccess file but it is still returning a 404: RewriteEngine On RewriteRule ^/liam$ ...
3
votes
1answer
161 views

Force fresh content, not from the browser cache

I used the following code in the htaccess to put my site under maintenance and show the visitors maintenance.html. Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_URI} ...
2
votes
1answer
97 views

How to set htaccess working on opensuse for codeigniter project

I'm trying to have htaccess work on codeigniter project but the module is not working and I don't know how to enable rewrite module. To have read the htaccess. The OS is Opensuse 12.2. I have this ...
4
votes
1answer
875 views

How can I use .htaccess to rewrite different domains to different sub-directories, masking the sub-directory?

I have a shared hosting plan that allows unlimited addon domains, but they can only point to the public root (/). I use .htaccess to point different domains to their corresponding sub-directories. For ...
0
votes
0answers
141 views

htaccess RewriteBase on subfolder

I have a WordPress blog on my domain, with a classic .htaccess permalink rule (redirecting from domain.tld to www.domain.tld. Now I also have an IP.Board forum, installed in the /forum/ subfolder. ...
0
votes
1answer
61 views

Most efficient way to forward domain.com to example.com/subfolder?

Title says my entire question. I think I saw someone forward domain.com to example.com/subfolder and have spent about a week trying to figure out how to best do this.. My goal is to have user type in ...
1
vote
1answer
530 views

Apache2 redirect all sub-directories to index.html of main directory?

I want to put an .htaccess file in a directory of my website. For this purpose in: www.mysite.com/dir/ Then I want anything after /dir/ to direct to /dir/index.html but still display the original ...
2
votes
1answer
86 views

htaccess URL rewriting

I want to redirect a request look like mydomain.com/abc/def to mydomain.com/abc/index.php?q=def where abc is a fixed directory name and def can be any string. How can I do this using .htaccess? ...
2
votes
1answer
59 views

htaccess rewriterule for aliasses

On our main domain we are running a CMS which feeds several domains with different input. The domains are directed with A records to the main ip address. The htaccess works fine it will bring up the ...
0
votes
0answers
47 views

301 redirect causes issue in web tools for analysis of performance and seo

I was googling all over the pages, trying to find what could be wrong before trying to contact the developers at tools.pingdom.com, gtmetrix.com, juxseo.com, and other sites. Since I have changed my ...
2
votes
1answer
107 views

how to fix .htaccess - redirect http://408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111

We want to use mod_rewrite and .htaccess to do a redirect. How do we redirect http://408.111.1111.domain.us/ and www.408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111 ? If the ...
7
votes
1answer
463 views

.htaccess redirect url without trailing slashes

In my htaccess I have some rewrited urls like these: RewriteRule ^first-page$ /subdir/page.php?id_page=1 [QSA,L] RewriteRule ^second-page$ /subdir/page.php?id_page=2 [QSA,L] RewriteRule ^third-page$ ...
2
votes
2answers
174 views

HTACCESS Wildcard Subdomain forward to Domain

I know this may seem like a duplicate, but I am unable to find a solution. Is it possible to setup wildcard subdomains with htaccess? I have an example of http://test.domain.ca I need to forward ...
3
votes
1answer
475 views

In Joomla In htaccess REQUEST_URI is always returning index.php instead of SEF URL

I have installed joomsef version 3.9.9 with the Joomla 1.5.25. Now I want to set https for some of the section of my site(e.g URI starts with /events/) while wanting rest of all urls on http.I am ...
2
votes
3answers
465 views

mod_rewrite works within directory not on root

I am having a problem with my RewriteRule for the querystring portion. What I am able to debug is that the rule is being triggered at least because the page "tags.php" is being rendered but without ...
2
votes
1answer
181 views

Is my htaccess setting hurting SEO?

I have a site that I have redirecting to https. I do this to leverage wildcard SSL for my password protected pages. Everything seems to work fine with testing. For example, whether you type in http or ...
1
vote
2answers
168 views

WordPress .htaccess preventing subfolder access

This is sort of a goofy setup, but it's not in my power to reconfigure it at this time. I'm running in a shared hosting environment. The domain is example.com. This is an add-on domain on the host ...
1
vote
2answers
427 views

Make a custom Apache handler (for multiple PHP versions)

I've successfully installed PHP 5.2 and it runs as CGI. (5.3 is my default running on mod, or as the phpinfo says "Server API: Apache 2.0 Handler") Ultimately I want to put something like ...
2
votes
1answer
164 views

htaccess code for maintenance page redirect

I set up a maintenance page that I could enable through an htaccess file. The html file is located in a folder called "maintenance". The html file has some images in it. However, visitors to the page ...
3
votes
2answers
249 views

301 redirect to 404 page?

Currently i'm migrating www. prefix from my urls and use htaccess to do the job. Since we have new software and cleaned database some of the old urls doesnt exists anymore. Therefore some requests ...
0
votes
0answers
3 views

Job Search Engine Url Structure Issue [duplicate]

Possible Duplicate: What is the best stucture of SEO friendly URL? I am working on a job board, and i'm trying to figure out a good design for URL structure. Some things that I have found ...
2
votes
1answer
59 views

301 re-direct all external links to new domain

I have changed the main domain to a sub-domain & would like to re-direct all external links to the new sub domain. Have read a few articles but having no luck editing the .htaccess as it might be ...
6
votes
2answers
350 views

Allow access to WordPress site only by links in email newsletters

I send out a personal email newsletter, and have been looking into sending it via some service like MailChimp, or sendy.co. Many of these email services suggest, or require, the email newsletter ...
2
votes
1answer
103 views

RewriteRule for URL Subdirectory Root

Have not found this in my searches on SE. I need this scenario to work: • User visits someurl.com/news/folder or someurl.com/news/somefolder/, they get redirected to someurl.com/somefolder. • If ...

1 2 3 4 5 10