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 are extensions often hidden on URLs?

Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this. Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some ...
13
votes
4answers
620 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
658 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
232 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
915 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
268 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
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: ...
7
votes
1answer
269 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
360 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
523 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 ...
6
votes
2answers
112 views

Google sitemap priorities, am I doing the right thing?

I've built a website which has maritime weather and tide data for UK locations, and each location has 7 day forecast (where data is available). My URL structures are like this: ...
5
votes
3answers
294 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
774 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 ...
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
528 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
780 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
18k 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
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 ...
5
votes
2answers
809 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
600 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
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
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. Old fashioned URL's are often called "dirty URLs", so I'll use that term. It is argued that with ...
4
votes
4answers
379 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
571 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
301 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
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, ...
4
votes
1answer
37 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
4
votes
1answer
867 views

Canonicalization for www/non-www URLs and IP/domain on a Windows server

I have checked my website using this SEO tool and the results report 2 issues: Test your site for potential URL canonicalization issues. Canonicalization describes how a site can use slightly ...
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
325 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
110 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
994 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
634 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
1answer
99 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
451 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
624 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
2answers
1k 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
218 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
111 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 ...