Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Shorten the URL in apache2.conf [duplicate]

I've just started using apache and I'm trying to change the urls from www.test.com/dashboard.php/page1 to www.test.com/page1 in appache's config file. This has to be done for all URLs so I'm doing it ...
1
vote
2answers
115 views

One .htaccess file with rewrite rules for all domains

Our server is configured with multiple domains which reside in subfolders of the public_html folder. So domain1.com is located in /home/user/public_html/domain1.com and domain2.com is located in ...
2
votes
1answer
66 views

How to keep my site error-free after chaning my site's URLS?

My site is almost static. It has 64 pages. These pages before today were named with underscore. After checking my sites SEO with WooRank, the site advices me to change underscore links to dash links. ...
0
votes
1answer
61 views

Cyclic redirection in .htaccess

I have the following .htaccess file: AddDefaultCharset utf-8 RewriteEngine on Options +SymLinksIfOwnerMatch RewriteBase / # redirect all www-requests to no-www # - RewriteCond %{HTTP_HOST} ...
4
votes
2answers
174 views

One million redirects

What's the best way to redirect 1,000,000 unique URLs to another 1,000,000 unique URLs? These pages are all combinations of multiple search filters and queries. We're migrating the site to cleaner ...
0
votes
0answers
11 views

Is single page website bad for SEO? [duplicate]

Suppose I have a website for a company which I want to SEO. Think of two scenarios: 1) There is only index.php, and for /about /contact sections I do it like this: index.php?what=about , ...
1
vote
2answers
251 views

Google is indexing main domain despite 301 redirect to subdomain

I had applied 'redirect 301' from main domain to subdomain and Google had indexed sumbdomain (and links under it) for years. Now, for some reason Google has started indexing the main domain while ...
1
vote
0answers
163 views

Is my .htaccess rule creating an infinite loop?

Whenever I type a made up address that includes a directory index it removes it. The problem is when the the address includes a forbidden subdirectory. It reduces itself until it hits forbidden. How ...
2
votes
1answer
142 views

Site migration and SEO impact

I'd greatly appreciate a response on the following question relating to site migration and SEO impact. Here's some background on how my domain name and site is currently configured: My domain name ...
0
votes
0answers
29 views

Domain forwarding to new sub domain not working

I've a site www.xyz.org which I've migrated to xyz.newsite.org. It has been more than a month but Google is still showing www.xyz.org in the SERP. I've migrated another site exactly in the same way ...
1
vote
1answer
59 views

How to properly URL/domain forward

No clue on a title for this, someone feel free to suggest an edit. I have a client that has a website. He owns around 200 domains, and wants each domain to contain content from the main website. ...
1
vote
1answer
98 views

.htaccess file to implement multiple redirects

I have a dynamic site and from .htaccess file creating clean URLs: RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.gif|\.jpeg|\.bmp)$ RewriteRule ^([a-zA-Z0-9_\-\+\ ]+)$ flight.php?flights=$1&slug=$1 ...
0
votes
2answers
162 views

To Fix HTTP 400-499 error codes with 301 redirects in .htaccess file

This issue is on Wordpress site. I am aware we can change the URL naming convention in WP but i have changed my url format from date format to simple postname followed by slug as shown below. old ...
1
vote
1answer
104 views

mod_rewrite with .htaccess to make dynamic page search engine friendly

I am trying to make search engine friendly pages with .htaccess. The page look like /en/hotel.php?id=nice-hotel-7-patterson-street and I would like the page to look like this ...
3
votes
1answer
242 views

Blocking pages from being crawled with specific URL encoded parameters

While seeing the Google Webmaster Tools report there are certain URL encoded parameters like %5c and %22 coming up in URL's of site. We tried to identify the issue and observed that due to incorrect ...
0
votes
0answers
15 views

Remove index.php from URL and still be able to POST [duplicate]

I am redirecting requests to index.php with .htaccess as follows: RewriteCond %{REQUEST_URI} index\.php RewriteRule ^(.*)index\.php$ /$1 [R=301,L] It works fine but the problem is forms are not ...
2
votes
2answers
302 views

.htaccess file size causes 500 Internal Server Error [closed]

As soon as my .htaccess goes over approx 8410 bytes, I get a 500 Internal Server Error. I don't think this is due to a bad redirect, as I have experimented with redirects in the .htaccess and then ...
1
vote
2answers
172 views

SEO penalization after 301 redirect

A client asked to re-do his website entirely. After I finished, I uploaded the new website into a folder of the old one, so the new one is in www.oldwebsite.com/new/. The old has few pages, static ...
1
vote
2answers
266 views

Redirect incomplete URL to index page

I want to redirect specific URLs to the index page not to 404 error page (ex: http://www.website.com/trip-15). If I remove any character from the URL it will go to 404 error page (ex: ...
0
votes
1answer
41 views

Why would my new WordPress site require a 301 redirect?

I just finished moving a site from localhost to its final domain, and the thing is that the SEO guys is saying I need to make a "301 redirect" from the old site to the new one, but there is no such ...
0
votes
0answers
77 views

GoDaddy: “No input file selected” and .htaccess with mod_rewrite?

This is a GoDaddy hosting problem I believe but I have no choice but to stay with them because of my clients. I have recently installed Open Classifieds 2 and was told during installion mod_rewrite ...
1
vote
1answer
154 views

Getting the masked URL values in Mediawiki

I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.: .htaccess: Options +FollowSymLinks RewriteEngine on ...
1
vote
0answers
73 views

How can I mask sub-directory to work as DocumentRoot for multiple domains pointing to the same location?

I am trying to mask sub directories to effectively work as DocumentRoot for multiple domains. e.g. I have two domains - domain1.com & domain2.com both pointing to the same location. I want ...
0
votes
1answer
28 views

.htaccess Directory Redirect Problem

I want to redirect a directory to another directory but I've hit a snag. I want to redirect /directory_name to /new_directory_name so I put this in my .htaccess: RedirectMatch 301 ...
1
vote
2answers
6k views

Configure clean URLs using Laravel using a rewrite rule to index.php

Recently I've started learning Laravel , I have none experience with framework before. I'm encountering the following problem .I'm trying to configure the .htaccess file so I can have clean URLs but ...
0
votes
2answers
202 views

Pretending a file is in subdirectory with .htaccess

I have a web application, and it has a RESTful PHP backend that uses Zend framework (which does its own URL rewriting magic). The problem is, my backend's entry-page is api.php and the endpoints look ...
1
vote
1answer
2k views

How to redirect IP to domain?

My IP xxx.xxx.xxx.xx is pointing to example.com at GoDaddy but I just noticed that when I type the IP in browser, it doesn't redirect to the website, how can do this? I am sure this will happen ...
0
votes
2answers
532 views

SEO on multilanguage website URL

I'm setting up a multilanguage website and I would like to have your help to take the best decision as regard SEO. After reading this. I would like to change my URLs from this form ...
1
vote
1answer
92 views

Htaccess 301 redirect dynamic URL

I don't know a whole lot about .htaccess rules so forgive and help me ask the correct question. Currently I have a .htaccess rule like: RewriteRule ...
0
votes
2answers
125 views

How to double protect admin access in PyroCMS

I have read how to protect admin folder with .htaccess and .htpasswd file but in PyroCMS admin login (ex: example.com/admin) just only routing system (no admin folder yet). So, how can I double ...
2
votes
1answer
673 views

How to make “crawl-delay” works for all “user-agent” in robots.txt or in .htaccess?

I have this line: Crawl-delay: 50 in the robots.txt file at the root of my website. But it seems that it is not working at all. I get 400 visits from the Yandex user agent in a few minutes. I ...
1
vote
2answers
432 views

Automatic redirection from http to https with .htaccess authentication in virtual hosting

Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
1
vote
1answer
184 views

Google Analytics shows visits to pages redirected in .htaccess

Yesterday, I switched on a section of pages in our site that replaces a really old collection of pages. In our .htaccess file, I have rules that redirect a request for any page in the old section to ...
1
vote
2answers
1k views

How do I redirect a URL using rewrite in .htaccess that has a question mark and forward slash where page.html is the variable?

Hello and thanks to all who contribute to this seemingly mind boggling puzzle. I apologize in advance if .htaccess questions belong on server fault. So I have to move a domain to our hosting servers, ...
3
votes
1answer
106 views

URL not found after rewrite

Using this .htaccess file: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteRule matches/(.*)-v-(.*) matches/matchevent.php?event=$1%20v%20$2 [R=301,L] This url: ...
1
vote
0answers
79 views

Website starts showing 404 after 301 redirects via .htaccess [closed]

One of my clients websites started getting 404 messages on some pages after doing 301 redirects via .htaccess file. I don't understand why that happens, could someone tell me what went wrong? The ...
1
vote
1answer
78 views

Etags are not appearing on PHP pages

My hosting provider (goDaddy) seems to be adding eTags to my files. However I've noticed that they are not appearing on .PHP file (they are on .HTM, .CSS, .JS and images). Is this normal? From my ...
1
vote
1answer
175 views

Silent redirection not working with mod_rewrite

I'm trying to grasp apache mod_rewrite When I add this to my .htaccess it silently (url doesnt change) shows page bob.htm RewriteEngine on RewriteRule index.htm bob.htm I.e. If I type this in the ...
1
vote
2answers
144 views

Stop .htaccess automatically influencing subfolders

In my webhosting package, the primary domain points to the root of my file system and any extra domains that I add point to subfolders. The problem is, the .htaccess for the primary is influencing ...
2
votes
0answers
11 views

How to use .htaccess to make a subfolder act as a subdomain [duplicate]

I have to make a new site for every subdomain I want to add directly on my host, so I'd like to make them subfolders and redirect like this so they look like subdomains anyway. For example, how could ...
1
vote
2answers
314 views

Conditional RedirectMatch based on IP

How do I use this RedirectMatch with limiting by IP address? This is what I have right now, and it works as is: RewriteRule ^dir.*$ http://www.mysite.org/otherdir/ [R=302,L] I want this to work ...
2
votes
1answer
47 views

Force url to use www [duplicate]

I'm confused about how to force my url to use www in the address. I have a .htaccess code like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
2answers
130 views

Need to redirect all files/folders under subfolder but leave subfolder alone

I hope my title makes sense. Here is what I have: On our previous website, we had URLs similar to the following: www.example.com/support/BIOS/JXT/0ABWDA22.zip This same file on our new site has the ...
1
vote
1answer
203 views

Separate 404 page for subdirectory

I've made a subsite which runs under mydomain.com/subsite - idealy from an architecture point of view it would be under a subdomain, but we wanted the links to come back to the main domain. The sub ...
2
votes
1answer
63 views

Simple RewriteRule [duplicate]

I'm trying to write a RewriteRule to make a simple url. I want users to be able to type enter www.example.com/somepage and have it take them to www.example.com/abc/somepage.php How can this be ...
3
votes
2answers
178 views

Using .htaccess for proper indexing/SEO of timthumb images

I don't know a whole lot about the intricacies of SEO so I was wondering if someone here could provide some insight to this problem. When you use the php script timthumb on a website, it means images ...
1
vote
0answers
55 views

optimize htaccess

I have two condition which are conflict RewriteRule ^patients/findadoctor/(.*)\.html$ subcategorydoctor.php?id=$1 [L,NC] and RewriteRule ^patients/findadoctor/(.*)\.html$ ...
3
votes
2answers
229 views

Can the .htaccess file slow down a website to a crawl? If so, are there better ways to solve these problems with different rewrite rules and such?

here is my htaccess file...... RewriteCond %{REQUEST_URI} ^/patients/billing/FAQ_billing\.html$ [OR] RewriteCond %{REQUEST_URI} ^/patients/billing/getintouch\.html$ RewriteRule ...
3
votes
1answer
733 views

.htaccess and .htpasswd throwing 500 internal server error

I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view the directory. Why? my .htaccess file: AuthName "Restricted Area" ...
0
votes
0answers
20 views

New to URL Rewrite [duplicate]

I have absolutely no knowledge in this and have tried several attempts to turn http://mcserverworld.net/library/site/register.php into http://mcserverworld.net/register I am using a xampp ...