Tagged Questions

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)

4
votes
2answers
309 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 ...
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
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]+)/ ...
1
vote
1answer
97 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: ...
0
votes
1answer
69 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 ...
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
73 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 ...
4
votes
2answers
332 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 ...
3
votes
2answers
3k 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
1answer
17k views

Apache: Virtual Host and .htacess for URL Rewriting not working

I have configured a virtual host in my local machine and every thing is working fine. Now I want to use SEO friendly urls. To achieve this I have used the .htaccess file. My virtual host ...
1
vote
3answers
2k 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 ...
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 ...
0
votes
1answer
535 views

Help with URL and HTACCESS

I have a social engine 3 website, in my website all URLS can be changed(URL-REWRITING) through the SE-url settings automatically, but in my website their is one module which is custom coded, where I ...
1
vote
2answers
236 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. ...
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 ...
0
votes
1answer
378 views

How do i point my domain to wordpress blog

I would like to know that if we have our WordPress blog like: http://koolkabin.wordpress.com and our domain like: http://www.outsourcingnepal.com then Can we make it like working and posting all ...
1
vote
1answer
56 views

mod_rewrite change . to -

I'm moving my site and the URL structure has changed because of the new CMS. The urls would be similar to /my.products.htm on the new site we are changing the URLs to this /my-products is their a way ...
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 ...
1
vote
1answer
984 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 ...
1
vote
1answer
5k views

URL Rewrite http to https EXCEPT files in a specific subfolder

I am trying to force all traffic on my web site to use HTTPS, using the URL Rewrite 2.0 module added to IIS 7.5. I got that working and now have a need to exclude a couple of pages from using SSL. So ...
10
votes
5answers
242 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 ...
0
votes
1answer
268 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? ...
12
votes
1answer
670 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

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 ...
1
vote
2answers
632 views

.htaccess rules to rewrite URLs to front end page?

I am adding a new application to my site at example.com/app. I want views at that URL to always open myapp.php. E.g. example.com/app -> example.com/app/myapp.php and example.com/app/ -> ...
3
votes
2answers
508 views

Which URL format is better? domain.com/[id]/title OR domain.com/title/[id].html [duplicate]

Possible Duplicate: SEO : urls : best place for the id My site uses URL rewriting in both formats (for different things), but I'm wondering which one is the better approach? ...
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 ...
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) ...
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 ...
6
votes
2answers
539 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 ...
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 ...
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
266 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
923 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
8k 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
153 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
293 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
172 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
818 views

How do I force a 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 on the Apache website. I’m trying to force www.example.com instead of example.com on both HTTP and HTTPS, ...
6
votes
5answers
2k 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
225 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 ...