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)

1
vote
2answers
856 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
150 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 ...
2
votes
1answer
1k views

Joomla 1.6 URL rewrite on IIS7 (removing /index.php/)

Joomla 1.6 was released today and I'm wondering if anyone knows how to get rid of the /index.php/ part? How link looks now: http://www.example.org/index.php/stuff How link would look after URL ...
1
vote
1answer
281 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
3answers
1k views

#! in URL: Is there any merit to using the shebang (#!) in URL if there is no AJAX-loaded content, but otherwise dynamic page generation?

Is there any reason, possibly SEO related, to using the shebang (aka "hashbang") in rewritten URLs on a dynamic site, but one that does not use AJAX?
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 ...
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 ...
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
2answers
765 views

How do i force www subdomain on both https and http

For whatever reason I can't seem to get this right, I've looked at many examples on here and apache's website. I'm trying to force www.domain.com instead of domain.com on EITHER http or https but I am ...
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 ...
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: ...
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 ...
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 '/') ...
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 ^(.+)$ ...
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] ...
2
votes
1answer
95 views

file need to go through a php page using .htaccess

I'm looking for a way to convert this type of url : h11p://www.mywebsite.com/dl/F5EGD6 Into h11p://www.mywebsie.com/dl/files/my_file.zip sing a PHP page to request the URL from the DB with F5EGD6. I ...
2
votes
1answer
221 views

How does Google handle “clean” URLs is the URL is always changing due to edits?

So, since some "clean" URL system pull the wording directly from content I was wondering how Google handles this? Here's an example of content changes changing the URLs: Version 1 of the Title: ...
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: ...
2
votes
1answer
884 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: ...
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
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, ...
2
votes
1answer
169 views

Debating between different kinds of URL and see if one is more seo-friendly than other…

So something like domain.com\x\y\z\t and domain.com\x?var1=y&var2=z&var3=t (var1, var2 and var3 will be replaced by legit words that make more sense). Which one is more SEO friendly? For my ...
2
votes
2answers
320 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 ...
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?
2
votes
2answers
289 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 ...
0
votes
1answer
93 views

Pretty URLs for dynamic links generated based on a 3rd party soap web service

We have a 3rd party web service which we interact with via Soap. In this regard we query the 3rd party for resources, construct a home page and all links generated on this index page are referencing ...
2
votes
2answers
444 views

Removing the script extension with URL rewriting on Apache

Given a (slightly theoretical) physical disk layout of: \products\cameras\50d.jpg \products\cameras\20d.jpg \products\lenses\18-55.jpg \products\lenses\28-135.jpg \products.php At the moment, I've ...
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
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 ...
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 ...
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 ...
2
votes
1answer
71 views

What's the quickest/cheapest way to get URL rewriting implemented?

Related to another question - if you need to get URL rewriting implemented ASAP, what are some methods that you've used or know of that can speed this up?
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) ?
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 ...
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 ...