Here is my .htaccess:
Options +FollowSymLinks +SymLinksIfOwnerMatch
#non .PHP files
<Files manage>
ForceType application/x-httpd-php5
SetHandler application/x-httpd-php5
</Files>
<Files profile>
ForceType application/x-httpd-php5
SetHandler application/x-httpd-php5
</Files>
<Files process>
ForceType application/x-httpd-php5
SetHandle...
We would like to redirect to a localized version of our entry webpage if IP is detected to be from a certain country. We are using ASP.Net, GeoLite Country Db (it's a very small, 1Mb downloadable DB at time of writing this question).
So, most users would get english content, but if they come from a local place, they would have local con...
We have a piece of legacy code that (ab)uses fopen() calls to resources over HTTP: @fopen('http://example.com').
We want to move example.com to another host and then send 301 Permanently Moved.
However, we are not entirely sure if @fopen() will follow this. Initial tests show me that it does not. But maybe I miss some configuration pie...
Hi Im trying to move a webpage from one domain to another.
Is there some way of doing the following, when a user gets into my page.
Enters domainOld.com/aUniquePage.html
Display domainOld.com/WeAreMoved.html
Redirect 301 domainNew.com/aUniquePage.html
Would that be possible with a .htacess and would google understand the 301 redirec...
Hello
I moved some of my old asp pages to new aspx website.
In all of the old pages i used (for file example.asp):
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.domain.com/example.aspx");
The problem is that when the page domain.com/example.asp?param=value¶m2=value2
is requested - the redi...
I am working on a large project that involves taking thousands (30,000+) static web pages and turning it into to a CMS.
The issue is many of these pages are duplicates within their directories. I want to keep the SEO intact by using 301 redirects, however, I am not sure how to go about doing such a large redirect (301).
Here is an exam...
Hello,
I've got a web site based on wordpress, I need to temporarily hide the web site.
I thought about using a PHP 301 redirect. I tried to put at the begining of index.php and xmlrpc.php without success. How does wordpress file-structure works?
Tnx
Giuseppe
...
nginx,
rack-rewrite and
refraction are possible solutions for my migration. It's a simple 1-to-1 mapping from old URLs to a new domain from the old one, e.g. http://old.com/posts/id to http://new.com/posts/id, so hopefully not too hairy. Does anyone have any good/bad experiences with these different approaches or have any comments on ...
I need to redirect from a main domain like mydomain.com or www.mydomain.com to sub.mydomain.com - and this needs to work for all requests, so mydomain.com/whatever goes to sub.mydomain.com/whatever.
I've tried this, which only works for non-www at the main domain:
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://su...
Hi,
I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://site.com/app. I want to 301-redirect the request to site.com/app/default.aspx to site.com/app for better SEO. I have to do this redirect through code only, not by any IIS settings. I am unable to do so via code m...
Hi Everyone,
I know this has been asked a few times but I can't seem to figure out the correct syntax for our situation.
I am trying to permanently redirect links such as example.com/work.aspx to example.com/work in the .htaccess file.
Basically converting an ASP.NET site to Wordpress.
Any help is much appreciated.
Thanks
Giles
...
Hi all,
I'm doing a 301 redirect on site A to site B - when the user arrives at site B it needs to find the page the user came from. This doesn't seem to be working though:
$_SERVER['HTTP_REFERER']
whereas if I do a link to the page
<a href="http://site-b.com">go</a>
I get the referrer through. Is there a reason it doesn...
So I've been in the process of improving the SEO of a wordpress blog I took over at my job. As I have learned more I have wanted to change the permalinks. Originally the permalinks were all /year/month/day/postname/. First I changed them to just / postname/, but then I wanted to do a better job siloing. So a few weeks later I changed the...
I have my app engine project myproject.appspot.com hosted at myprojectsdomain.com. I want to permanently redirect all links at myprojectsdomain.com to brandNewDomain.com. I found the Java URL Rewrite filter at http://code.google.com/p/urlrewritefilter/ , but I'm not seeing the documentation on how to use this for a 301 redirect for cha...
Hi how do you 301 redirect http:// www.site.com/blog/index.php?id=uu5 to http:// www.newsite.com/ in .htaccess?
Thanks!
...
I need to rewrite a url that contains a comma to another URL. The original URL also contains +'s (pluses) which I have figured out need to be escaped with a backslash, but the commas don't seem to be read properly.
Here's what it looks it like:
RewriteRule ^locations/New+York/Buffalo,\+Erie\+County,\+and\+Surrounding\+Areas$ "/locations...
I am working on overhauling the URL structure of review pages, which can be filtered by city, county, # of stars and technician. I want to make the pages look like they are static HTML pages as well as replace pluses with hyphens.
My goal:
-Apply the new style URL's without modifying the reviews page, just the htaccess file
-Set up 301 r...
HI -
I have a site (built years ago) which uses .htm extension on most pages.
I'd like to switch to a Wordpress CMS and use the "html on pages" plugin to re-create the whole site, but then, of course, I would end up with html extensions on all my pages and lose all my search engine placement for the original .htm pages, many of which h...
Hi
I have updated my website to now use the codeigniter framework my new urls are like the following example.com/index.php/home/page/page-title
The old urls are example.com/index.php?option=com_content&view=article&id=249
Ideally I want to do a redirect for all links formatted in the old way to the new links but there are a lot of pag...
Hi!
I´m trying to do a 301 redirect in a htacess file. I want to point all pages on one domain to one single page on another domain and I do not want to manually redirect all single pages.
Ex: www.olddomain.com/1.html and www.olddomain.com/2.html should both point to www.newdomain.com.
Hope anyone could help me.
...