A URL rewrite engine is software that modifies a web URL's appearance (URL rewriting). Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly - SEF) are used to provide shorter and more relevant-looking links to web pages. The technique adds a degree of separation between ...

learn more… | top users | synonyms (1)

0
votes
2answers
264 views

How to allow nonsense characters as web url for example: & * Ö :: and more

I have a database which contain many name with combination of those characters. Once i will reload them, they will become public web url. So that visitor if open this url (its valid??): ...
2
votes
1answer
208 views

Is there a SEO benefit of a 'reverse canonical redirect' back to the 'friendly' URL?

As far as I understand, you should have a single URL to access a given page on a website to prevent duplicate issues. With this in mind I have setup IIS7 Rewrite to point my friendly URLs to my .aspx ...
4
votes
2answers
411 views

Having google index canonicals but users using parameters - correct?

I'm working on a site that has a search facility with multiple parameters that look up property listings. The possible parameters are: City, Area, Building Type, Min. Bedrooms, Max Rental Price, ...
-2
votes
2answers
236 views

.htaccess guide / examples / tutorials? [closed]

Does anyone know of any good guides for someone new to editing and making .htaccess files. Anything about rewriting urls, directory access and passwording a directory would be great.
1
vote
2answers
2k views

apache domain redirect to subfolder

I have a hosting account with godaddy. Its a linux system running apache. The way they do their setup is your primary domain is the root folder. When you add a subdomain its in a subfolder of the ...
1
vote
3answers
1k views

apache rewrite .htaccess google adwords gclid

I've got an url coming in as: /index.php?/location/&gclid=287ejek22kj This is going to a 404 page because of the gclid... I need it to go to: /index.php?/location I've tried this, with no ...
8
votes
1answer
2k views

Alternative to .htaccess (due to bad performance?)

I've been told that .htaccess should be avoided when possible, as it reduces the server performance and new servers disables it or just don't implement it anymore. I don't know how true this is, but ...
1
vote
3answers
1k views

Search Engine Friendly URLs with Query String

I have content that can be accessed from various ways. For example my content is reviews and I have three type of reviews: /customer-reviews/11/slug.html /third-party-reviews/11/slug.html ...
0
votes
2answers
53 views

Cannot allocate resources due to URL rewriting

I've a rewrite rule to convert mysite.com/?lang=en to mysite.com/en, but this now gets me into troubles as the referenced files in the .html are relative to parent folder, and now its supossed to be ...
2
votes
2answers
292 views

Mod Rewrite not working on my addon domain

have a wordpress website on my main domain For the wordpress website i have this in my .htaccess file # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond ...
2
votes
2answers
275 views

Can you rewrite the root?

Not sure how to word this one but will explain most I can. I am trying to make the following happen. Re-write this http://domain.name To this http://domain.name/home/ Is it possible ? update ...
1
vote
1answer
101 views

What impact (if any) will using the term 'portal' in my subdomain names, have on SEO for my website?

I am building a portal for a specific category of information. I am trying to decide whether to use subdomains like: www.portal.mysite.com/home.html (home page) ...
5
votes
3answers
293 views

Why treat these as different URLs?

These are all strictly different urls: http://www.example.com/page http://www.example.com/pAge http://www.example.com/page/ http://www.example.com/paGE/ I get that it conforms to the strict ISO ...
0
votes
1answer
82 views

Sitemap and url are laid out differently from each other

There is a website and the layout looks something like below: home->approved-> education entertainment business | ...
0
votes
1answer
171 views

Restrict access of rewriting file using .htaccess

I rewrite my .php files to .htm, using the following code in .htaccess file. RewriteEngine on Options +FollowSymlinks RewriteRule ^(.+)\.htm$ $1.php [NC] This is working fine. But now I want to ...
1
vote
1answer
65 views

How do search engines handle URL's when it comes to SEO?

I am building a website using Symfony. At the moment, the "raw" URL's being used are like this: www.localhost.com/mainpage/home www.localhost.com/events/1/name-of-the-event When the development of ...
3
votes
1answer
178 views

Adding names to slug of URL

On webpages generated from user generated content, I create slugs for the URLs based on the title (just like stackoverflow does): http://www.example.com/photo/day_at_park If there's more than one ...
0
votes
1answer
3k views

“Rule caching” in .htaccess - How to force apache to re-read a modified .htaccess?

I am reorganizing the link structure of a dynamic php-based site of mine. What I am trying to obtain is: redirect old links onto new ones; create new RewriteRules for new links, since every 'link' ...
0
votes
3answers
72 views

RewriteRule was matching before migration, but now browser gets a 404 error

I have this URL rewrite rule in my .htaccess RewriteEngine on RewriteRule ^home$ home.php but when I try to reach awatag.com/home I get a 404 error. This rule worked perfectly before moving the ...
1
vote
1answer
563 views

Can Apache “Correct” URL Case?

Let's say I keep every word of file names capitalized. For example, Home.php or MultipleWordTitle.html. Is there any way for Apache to redirect requests for incorrectly-cased URLs to the capitalized ...
2
votes
2answers
91 views

When is it worth it to make my URLs “pretty”?

We are in 2011, search engines are now using hundreds or thousands of parameters to weight a page. The URL is only one of them, is it still so much of an impact in the search results? People are ...
3
votes
1answer
216 views

SEO - reducing URL length

Take a recent question: http://stackoverflow.com/questions/6479771/properties-of-inner-exception-are-disposed Instead of having an integer, if we base 36 encode the question ID we get 3uvtn, cutting ...
2
votes
2answers
236 views

Different urls to same page and redirect

I have 3 urls leading to same page // as most pages are in google, my previous website's version http://mysite.com/1234.aspx // shortcut http://mysite.com/1234 // SEO url ...
3
votes
1answer
444 views

clean urls and differences in hosts

I am developing a relatively static website, where I want to be able to access each page without typing .html (or .htm or .xhtml ...) at the end (/about not /about.html). I am developing using the ...
1
vote
1answer
1k views

URL Rewrite to subdomains?

say i have a website with /article.php?id=1&category=Minecraft&Name=Lorem+Ipsum and /topic.php?category=Minecraft how would i setup url rewrite to make the topic pages being ...
1
vote
1answer
96 views

I need a little help with .htaccess rewrite

I need a little help with .htaccess file I have songs, singers and albums links I want to rewrite. I all ready rewrote the links and they are like this: the links for the songs is like this: ...
1
vote
2answers
140 views

htaccess rewrite problem

Maybe is best way to show my problem in one example. In my .htaccess : RewriteRule ^catalog/[a-z0-9_-]+-([0-9]+)/[a-z0-9_-]+-([0-9]+)/[a-z0-9_-]+-([0-9]+)/ ...
0
votes
1answer
67 views

help with htaccess code for navigation [duplicate]

Possible Duplicate: I need a little help with .htaccess rewrite Hello, I need a little help with .htaccess file. I have songs, singers and albums links I want to rewrite. I already rewrote ...
1
vote
2answers
229 views

How does WordPress determine which template to show?

So I recently set up a Wordpress blog and I've noticed that when I make posts, the link is http://www.domain.com/?p=2. I was wondering how you could specify which file to use to parse such requests. ...
2
votes
2answers
2k views

Use .htaccess to rewrite requests for a PNG as a PHP GET variable

I'm REALLY bad with .htaccess files, and reading through the existing questions on SO only confuse me more (mainly because they're all situation-specific and don't exactly apply to my situation at ...
2
votes
2answers
84 views

Displaying “index.php” in URL

Is there a best practice/convention to have www.example.com as opposed to www.example.com/index.php in a site's URL? I made the links to the homepage relative (i.e. href="index.php") as opposed to ...
11
votes
1answer
656 views

Ars Technica .ars URL suffix — Vanity or SEO Benefit?

The Technology website Ars Technica has adjusted their URL rewrite rules to end with a .ars. Traditionally, sites have taken advantage of this URL rewriting capability to completely eliminate file ...
3
votes
2answers
2k views

How to track subdomains with Google Analytics while having mod_rewrite redirect to a subdomain?

When users come directly to domain.com or www.domain.com, I am redirecting them to shop.domain.com via this .htaccess rewrite: RewriteEngine on RewriteCond %{HTTP_HOST} ^www.domain.com$ [OR] ...
1
vote
1answer
914 views

Different robots.txt for two different domains point to same folder

I have the following two domains: domain.com test.domain.com Both point to same folder which is "public_html". What I want is a different robots.txt file for each domain. So when someone ...
0
votes
1answer
264 views

How to block access to a sub-site with mod_rewrite?

Let's say I have the sites siteA.com and siteB.com. They are hosted such that siteB.com actually points to siteA.com/siteB. How can I block someone from visiting siteA.com/siteB using mod_rewrite? ...
3
votes
2answers
2k views

In a URI, what does the suffix “.do” stand for?

I see URI ending in ".do" on some enterprise websites. I've always been curious to know what that stands for, but my Google searches have so far not turned up an answer. Here is an example from ATT ...
0
votes
1answer
350 views

htaccess rewrite - Associating subfolders of web root as index of domain

I've been trying to find specific information on the problem, but it all seems rather confusing or irrelevant. I have an Apache install with several subfolders with different websites. I need ...
3
votes
2answers
5k views

Rewrite for robots.txt and favicon.ico

I have setup some rules in which subdomains (my users) will default to where I have located the robots.txt, favicon.ico, and crossdomain.xml therefore if a user creates a site say ...
1
vote
2answers
1k views

How to add an exception to this rewrite rule

I need to change this so that one file in wp-admin is not forced through https: # add a trailing slash to /wp-admin RewriteCond %{REQUEST_URI} ^.*/wp-admin$ RewriteRule ^(.+)$ ...
0
votes
2answers
85 views

RewriteRules targeting a directory result in a gratuitous redirect

I have a standard CMS-like RewriteRule set up in my .htaccess: RewriteRule ^(.+)$ index.php?slug=$1 Let's say I have a directory called "foo" in the root directory. For some reason, if you hit the ...
1
vote
1answer
248 views

Please explain some of the features of URL Rewrite module for a newbie

I am learning to use the IIS Rewrite module and some of the "features" listed in the page is confusing me. It would be great if somebody could explain them to me and give a first hand account of when ...
1
vote
2answers
882 views

Domain forwarding with url substitution in the address bar

I have a blog being served by a machine I have at home. Since the ip can change i set up a dyndns domain to always point to that machine. However, I purchased a more friendly domain (at godaddy.com) ...
4
votes
1answer
7k views

Properly force SSL with .htaccess, no double authentication

I'm trying to force SSL with .htaccess on a shared host. This means there I only have access to .htaccess and not the vhosts config. I know you can put a rule in the VirtualHost config file to force ...
1
vote
1answer
152 views

Should I use subdomains or subfolders for my user groups?

I run a photography website where each user has its own subdomain (i.e. user.site.com). I'm thinking of adding user groups but I'm unable to decide if I should also associate a separate subdomain or ...
1
vote
1answer
289 views

Re-writing URL's with lighttpd

I'm using Lighttpd to serve a GET based API that I'm working on, and I'm having some difficulty with re-writing requests. My API calls are very simple. An example would be : ...
0
votes
2answers
114 views

Need help getting user friendly URL

I trying to get a user friendly URL. My current link is this: http://www.norwegianfashion.no/designers/?designer=Batlak-og-Selvig&bid=9 What I want is this ...
2
votes
2answers
328 views

How can I rewrite an old URL using variables to a static html page?

I am an htaccess newbee I am trying to redirect the old URLS for my site to the new URLS for my site. The old site used variables in the URL but the new site uses SEO friendly URLs. When I try to ...
7
votes
3answers
223 views

SEO and Changeable-But-Optional URL's

Is there any sort of downside for a URL being changeable? Take any stack exchange question for example. The URL looks something like this: ...
5
votes
2answers
802 views

URL rewritten pages take much longer to load

(Same issue as http://stackoverflow.com/questions/3987754/how-to-diagnose-htaccess-speed-issues-via-rewritelog but more clearly explained below) We have a site which has scripts like this: ...
2
votes
1answer
921 views

SEO benefits of URL as: www.example.com/category/subcategory/ [duplicate]

Possible Duplicate: debating between different kinds of URL and see if one is more seo-friendly than other… Our SEO advisors are claiming that having our URLs in the form: ...