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)

18
votes
5answers
2k views

Why extensions are hidden in URL?

I know HTML and CSS like a mid level still not a pro. Many times I see in URL extensions are hidden (e.g. .html, .php) but everybody is not doing this. Why do they do that? Is it for security, or for ...
13
votes
4answers
610 views

How do I implement URL rewriting in my .htaccess file?

I'd like to do some URL rewriting (Why? See this question.) so that instead of users seeing addresses like labouseur.com/course-compilers.html they can instead see and use simply ...
11
votes
1answer
650 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 ...
9
votes
5answers
222 views

Which of these 3 URL-Rewritings are better SEO friendly URLs?

Imagine my current flat-file no-CMS website with an URL like http://website.com/en/tomato. This is of course very unsexy and could be anything really from tomato soup, tomato the music band, tomato ...
9
votes
2answers
793 views

SEO : urls : best place for the id

I would like to know what's the best location for an id in a SEO optimized URL: http://www.site.com/id/slug-title http://www.site.com/slug-title-id What do you think ?
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 ...
8
votes
6answers
1k views

Poor Man's Clean URLs vs. Mod_Rewrite

At the company where I work, we're getting ready to design a new web site, and there's some disagreement about how to do clean URLs. Over the past year we've been making small improvements to our ...
7
votes
2answers
258 views

Is using URL Rewritting the only way to make sure all pages are cached by Google?

If I keep the pattern (index.php?module=test&param=1) will pages be less likely to be indexed then if I use the pattern (test_param_1.html) ?
7
votes
3answers
216 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: ...
7
votes
1answer
267 views

Apache rewrite rules for development workstation and server

I've got developers editing pages for several sites on a WAMP stack and then uploading to the public servers running LAMP stacks. We're pretty happy with it, but we have this minor annoyance: we can't ...
7
votes
1answer
346 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here ...
6
votes
2answers
482 views

Moving large website to new CMS - URL changes

I was wondering if you have any tips on the following situation. I'm going to move a large website to a new Content Management System (CMS), here are some details on the site: online news magazine ...
6
votes
5answers
7k views

How to Remove Extensions From, and Force the Trailing Slash at the End of URLs?

Example of current file structure: example.com/foo.php example.com/bar.html example.com/directory/ example.com/directory/foo.php example.com/directory/bar.html ...
5
votes
3answers
286 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 ...
5
votes
5answers
1k views

WWW.yoursite.com or HTTP://yoursite.com which one is futureproof?

http://yoursite.com www.yoursite.com http://www.yoursite.com yoursite.com Which of these would you choose as your favourite to work with, if you were to make a site for 2011 and beyond, which ...
5
votes
2answers
489 views

I am changing my file extensions in URLs, how to keep my good SEO results?

We have a website with good SEO results. For design reasons I have to update the design and I have to change file names from .html to .php. But I keep my domain name! What should I do in order to ...
5
votes
6answers
1k views

SEO: do we need to redirect also pages with final slash?

i read on Google SEO REPORT CARD that for search engines this page: http://www.domain.com/somepath is a different page than this one: http://www.domain.com/somepath/ (note the final slash '/') ...
5
votes
1answer
708 views

PHP URL Rewrite engine for small project

I use PHP. I want to setup a micro site as a prototype, where I can work with the frontend only, separated from any CMS. URL Rewrite I also want the URL rewrite to be correct, like ...
5
votes
3answers
15k views

How to remove trailing slashes from URL with .htaccess?

The situation Across the entire domain, we'd like the URLs to hide file extensions and remove trailing slashes, independent of the domain name itself (as in, works on any domain). Sample of our ...
5
votes
2answers
2k views

Rewrite rule to show as directory using .htaccess

I want to implement a rewrite rule in my .htaccess file to show a specific url as a directory of my server. See the code below I written, RewriteRule ^(.*)/$ ?page=$1 [NC] This will rewrites urls ...
5
votes
2answers
766 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: ...
5
votes
1answer
6k 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 ...
5
votes
2answers
3k views

How do I setup 301 redirects in Google Apps site?

I have just moved a website from a shared host to a Google Apps site. Is there a way I can setup 301 redirects on my Google Apps site so that old links (with a different URL) can be 301 redirected to ...
4
votes
3answers
587 views

Good Practice for Formatting SEO-Friendly URLs?

Does anybody know what the best SEO practice and most effective format for URLs is currently? All lowercase or mixed case? Example: http://www.mysite.com/What-is-My-Site/ OR ...
4
votes
5answers
678 views

URL for separate mobile site

I've had a look through this site and found several similar questions but none which address my current needs. Normally I create responsive sites but on occasion I will create a 'desktop' and a ...
4
votes
5answers
179 views

Should I differentiate parameters in my URLs?

I think I read somewhere that it was a good practice to have certain "totally dynamic and irrelevant" parameters excluded from the nice URL rewriting techniques. Like here on the StackOverflow galaxy, ...
4
votes
2answers
2k views

URL rewriting removing question mark and replace it with slash

How can I rewrite my URL from edit.php?id=2 to edit/id/2?
4
votes
4answers
377 views

Removing page levels/ keeping url clean

I have recently put my site live - http://www.soundplaza.co.uk I then bumped into a few articles mentioning about page length and depth and I was wondering if I should change the URL structure while ...
4
votes
2answers
569 views

Redirecting URLs when launching a new website - how to avoid dropping page rank

i have over 100 urls in my website which i need to redirect: E.g. /page/how-to-bake-chocolate-cookies/ will redirect to /cookies/how-to-bake-chocolate-cookies/ /page/contact/ will redirect to ...
4
votes
2answers
298 views

After URL rewriting Google still features many of the old and dirty URLs

I did a complete URL rewriting of my site some three months ago, however Google still features many of the old URLs. They're not dead links as they correctly redirect to the new URLs, but it sort of ...
4
votes
2answers
2k views

Best SEO practices for mobile URLs: 301, rel=canonical, or something else?

I am developing a site with a mobile version and am trying to figure the appropriate way to manage the URLs for search engines. So far I've considered: Having a separate mobile site (m.example.com) ...
4
votes
7answers
5k views

How do you remove invalid characters when creating a friendly url (ie how do you create a slug)?

Say I have this webpage: http://ww.xyz.com/Product.aspx?CategoryId=1 If the name of CategoryId=1 is "Dogs" I would like to convert the URL into something like this: http://ww.xyz.com/Products/Dogs ...
4
votes
2answers
403 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, ...
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 ...
4
votes
2answers
322 views

.htaccess URL rewrite [closed]

I used to have a rewrite rule to RewriteRule ^([^/]+)\.htm$ index.php?c=$1 [NC] RewriteRule ^([^/]+)\.htm/([0-9.]+)$ index.php?c=$1&amt=$2 [NC] Now, I have to change to RewriteRule ...
4
votes
1answer
100 views

Why is www. working but no-www is not?

Right now my site runs on http://www.example.com but I need to run that without www also i.e example.com Can some body tell me here that how can i do that?
4
votes
4answers
770 views

htaccess 301 redirect help needed(removing GET parameters)

Due to some issues in my site many pages are visible as duplicate using : www.example.com/page.html?task=view but it's content is exactly same as www.example.com/page.html. One way is to use http 301 ...
3
votes
4answers
573 views

Which URL is SEO friendly?

I have to choose between two usernames, one comprises of just my first name i.e. http://example.com/john while the other comprises of full name i.e. http://example.com/johnsmith. Which of the above ...
3
votes
3answers
1k views

URL rewrite - should I write a fake file suffix (.html) or something more realistic to the platform? (like .asp or .cfm)

First, I'd like to preface this question by stating that I insist upon publishing a file name suffix, but only on the outer most entity of our site, the detail pages. I do realize the suffix is not ...
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 ...
3
votes
3answers
1k views

what are benefits of URL rewriting?

URL rewriting has become quite popular but I think it only adds more complexity to the Web. They call the old fashioned URL's, "dirty URL" so I'll use that term. They argue that with rewriting, it ...
3
votes
1answer
95 views

Can Google Index Rewriten URLs?

Can Google index rewriten URLs? I mean, if I have the link <a href="http://mydomain.com/document">Grab the document!</a> and if I instruct Apache to rewrite http://mydomain.com/document ...
3
votes
1answer
437 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 ...
3
votes
1answer
558 views

What does the '^' mean in “rewrite ^ http://test.com permanent;”

I found some configuration of nginx contains: if($args ^~ post=140) { rewrite ^ http://test.com/ permanent; } What does the ^ mean in rewrite ^ http://test.com/ permanent?
3
votes
1answer
213 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 ...
3
votes
2answers
109 views

Site-wide redirect with Tomcat4

Disclaimer: My webmastering experience is almost nil. Apologies if anything seems ignorant - if it sounds that way, it probably is. My employer is in the middle of switching over from one version of ...
3
votes
1answer
157 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 ...
3
votes
2answers
966 views

Is it bad to use Japanese characters in search-friendly URLs?

I'm new to SEO and I'm implementing SEO-friendly URLs in my site. The code works perfectly, however I would like to know if using Japanese characters (Kanji / Hiragana / Katakana) in the URL affects ...
3
votes
1answer
172 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 ...
3
votes
4answers
2k views

How to create .htaccess to block access to a subdirectory that hosts a separate domain

So I am pretty noob at with creating code in .htaccess, but I know it is what I need to accomplish a pretty simple task. So here is what I want to do. I have a main domain, (me.com), and I am hosting ...