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)

3
votes
4answers
637 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 ...
2
votes
5answers
199 views

Apache URL rewriting not working

All .php files are rewritted before doing the below rewriting: test.php => test foo.php => foo I want to rewrite this URL http://www.testdomain.com/test?name=john&id=2&nick=doe to ...
0
votes
0answers
22 views

Apache/ISS equivalent

I've always used Apache for all my web development work and I'm struggling to get my head around IIS. I've got an API that re-routes all requests to one particular file: 'api.php', how would I do the ...
0
votes
0answers
23 views

Change Subdomain follow IP Country?

I have something don't know to do it. I want to config domain when the User go to my website, system is catching IP Country of user and auto change my subdomain from www.mysite.com/index.aspx to ...
1
vote
2answers
936 views

Remove .php and id from URL and replace with slash

I have tried lots of URL rewrite rules in .htaccess but I am stuck now. I have to change this URL: products.php?id=31 to products/31 I have used: Options +FollowSymLinks -MultiViews ...
0
votes
1answer
253 views

URL rewrite to another folder and file for specific requests

I have following directory structure on my local LAMP: www basic app router.php public index.html .htaccess and I can access my index page with localhost/basic/public/ and I am not using ...
2
votes
1answer
162 views

Apache rewrite rule to add a directory in front of a file

I have an HTML page in my root directory, and when someone clicks it I'd like there to be a directory before the file name, that doesn't exist. For example, instead of just being able to access: ...
1
vote
2answers
158 views

Can I have tracking parameters immediately after a forward slash /?

I would like to start redirecting all /index.php pageviews to / to clean up GA data and otherwise simplify URL hits. Does anyone foresee this causing any problem when using tracking parameters? E.g. ...
0
votes
1answer
362 views

How to map requests to an external directory

I have a directory/application that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: ...
2
votes
1answer
192 views

Changing file extensions in URIs - Server Error after Apache upgrade

Please can anyone help to identify flaw or incompatibility in .htaccess code causing server error? In the process of changing over from static to dynamic website, I had to maintain some static files ...
5
votes
2answers
530 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 ...
0
votes
1answer
22 views

How can I rewrite to my .htaccess in PHP? [duplicate]

How to rewrite my URL from http://www.mysite.com/listingsecond.php?ID=1 to http://www.mysite.com/listingsecond? How can I rewrite to my .htaccess in PHP to do this?
2
votes
2answers
67 views

Google Analytics Campaigns - cleanup URL after arriving to webpage?

After visitor lands to my webpage using campaign url: http://www.mydomain.com?utm_source=signature&utm_medium=email&utm_campaign=myname Is it possible to do a rewrite to ...
1
vote
1answer
96 views

What is occurring in this .htaccess file in regards to rewriting to clean URLs?

I have the following code in my .htaccess file, which is working fine and using "pretty" permalinks to reroute everything back to /index.php, and using $_GET values to serve customized content based ...
2
votes
1answer
35 views

What is the precise term for serving internal URLs to external ones?

Consider URLs to a public API: https://api.example.com/items https://api.example.com/add https://api.example.com/remove ... Internally, the calls are being served from local URLs, for example: ...
1
vote
1answer
169 views

Apache: redirect URL of internal WSGI server

The following Apache conf file serves a WSGI application via port 9002: <VirtualHost *:9002> SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile ...
1
vote
2answers
138 views

URL for website with multiple currencies

It seems that most of the websites which handle currencies keep track of the current currency throughout the user browser session and not through the URL itself. This way, when sharing the URL with ...
1
vote
1answer
42 views

Changing www to point to non-www, instead of the opposite, using .htaccess

I'm switching servers and need to change the following RewriteCond and RewriteRule commands in the .htaccess file. Right now I'm pointing domain.com to www.domain.com using: RewriteCond %{HTTP_HOST} ...
2
votes
0answers
124 views

Rewrite rule not matching second level directory URL [closed]

I have this .htaccess in a po_systems folder of my website # Set up mod_rewrite RewriteEngine on RewriteRule ^build_system/([^/]+)/([^/]+)/?$ ...
4
votes
1answer
283 views

Dynamically rewrite URLs upon the user's selection - is it possible?

In my PHP based web application, there's a form that generates a URL according to the user's selection. The form has 7 different fields, each one of them affects the final URL, none of them is ...
1
vote
2answers
534 views

Which method is better to add “www.” before domain name

I have search through Google and found 2 methods to add www before domain name. First is by adding a CNAME and second is using rewrite mod in .htaccess file. I just want to know which method is ...
0
votes
1answer
148 views

How to secretly rewrite Google Analytics campaign codes to main page?

I want to create a simple "secret" mod_rewrite redirect (not shown in user's browser address box) to redirect: http://www.mydomain.com/code -> ...
0
votes
0answers
68 views

Trouble with encode URL rewriting ASP.NET

Some mounths ago I used links to image as: http://rielter77.ru/imgrs.axd?w=300&file=24587263-7fdf-415a-86fe-9de5f4c18fbb.jpg 3 weeks ago I create a URL rewrite rule: from ...
0
votes
0answers
78 views

When IIS rewrite rule fails it triggers or moves on to a 2nd rewrite rule

Windows 2008 Server: IIS 7.5 I want to construct a rewrite and redirect rule so that if it fails, (can't find the page because the condition is not met, or perhaps page does not exist) another rule is ...
1
vote
1answer
188 views

“Syntax not understood” error in Google Webmaster Tools robots.txt analysis when I use RewriteRule

In order to redirect my www.site.com to non-www, I employed this bit of code found somewhere on the web. RewriteCond %{HTTP_HOST} ^www.website.com [NC] RewriteRule ^(.*)$ http://website.com/$1 ...
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 ...
1
vote
1answer
163 views

Redirect rule to new site still requires old site to be active

I have two websites being served on IIS 7.5 Windows Server 2008, with one site (projects.com) recently moved so that it now sits under the 2nd site (mainsite.org). This sub-site has numerous resources ...
4
votes
1answer
953 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 ...
1
vote
1answer
581 views

URL Rewrite in IIS 7.5

I have a web site (hosted on IIS 7.5) that has bindings to four URLs. Something like: www.example.com example.com www.example.net example.net What I would like to accomplish using URL Rewrite is ...
2
votes
1answer
94 views

301 redirects, query strings and SEO

We have recently consolidated one site into another one. We set up all of our 301s and those all work famously. The bulk of the 301s (including the old site's homepage) land on an interior page of ...
1
vote
1answer
115 views

Rewrite URLs not working - wrong method or conflict?

I've been at this for about an hour now and I'm not having much luck. htaccess files are quite new to me, so I'm obviously doing something very wrong. Current htaccess content, which I need to keep: ...
0
votes
1answer
33 views

URL subfolder rewrite without server access

I am having trouble with the following. I have a site in development that has every link on the site pointing to the wrong folder. Example: example.com/en/home/, a site link goes to example.com/en/, ...
3
votes
1answer
201 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 ...
7
votes
1answer
365 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 ...
1
vote
1answer
154 views

Rewrite rule for friendly URLs to index.php is not working from htaccess

Trying to get SEO Friendly URLs to work for my website using the following htaccess: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
1
vote
2answers
115 views

IIS Rewrite Module 2.0 question

If I have to install "IIS Rewrite Module 2.0" on my machine for it to work, since my web site runs on a shared web server, does that mean that my host has to have this installed in order for it to ...
0
votes
0answers
8 views

How can I rewrite URL without losing Facebook likes, tweets, etc [duplicate]

I have decided to change the structure of my URLs, so that they'll be shorter and make more sense. The only problem I have is that my site has hundreds of pages and they all have lots of Facebook ...
3
votes
1answer
158 views

URL rewrite and domain frame

I have registered the domain www.posti.sh at nic.sh. The website is on the server www.myskoob.com/postish. Unfortunately, nic.sh does not support frames, i.e. that the domain stays posti.sh as it ...
1
vote
1answer
105 views

URL is generating a /#!/splash-page

My site for some reason is generating a shebang - /#!/splash-page on the URL. For example when I type www.modernvintage1005.com, the browser returns www.modernvintage1005.com/#!/splash-page and every ...
0
votes
1answer
64 views

Possible to drop the original query parameters entirely in a rewritten URL?

Original URL looks something like domain.com/filename.php?id1=333&id2=444. Desired rewritten URL is something like domain.com/my-rewritten-url. I can imagine creating a lookup table with columns ...
1
vote
1answer
527 views

Web.config WordPress rewrite rules next to Magento

I've installed Magento on IIS in folder: E:\mydomain\wwwroot (I already have it all running correctly). I have no deeper folder magento, I placed all files directly in the wwwroot folder, so: ...
4
votes
2answers
2k views
1
vote
2answers
718 views

URL rewrite subfolder to root and forbid accessing subfolder

I have Drupal installed in a subfolder drupal but I want to access pages as it is in root folder: http://www.example.com instead of http://www.example.com/drupal I'm able to have this working, but ...
0
votes
2answers
135 views

URL good practice for category sub category?

I have developed a application and I need to work for SEO-friendly URL. I have following URL structure: http://localhost:3000/posts/product/testing-with-slug-url-2 and ...
0
votes
0answers
217 views

SEO, IIS 7 and web.config in subfolder issue

We have ASP.NET application that has sub-folder with .aspx pages and separate web.config file in it. The .aspx pages in that sub-folder behave as separate site. In the web.config file at application ...
1
vote
1answer
172 views

How can I set parameters in Google webmaster tools so that my dynamic content is indexed?

I have read questions about URL parameters in Google Webmaster Tools in this site and the Google Webmaster Help Center but I have a problem. My site searches in the database and show some ...
4
votes
2answers
327 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 ...
2
votes
1answer
114 views

Rewrite catalog/index.php to www.domain.co.uk [closed]

We have an online shop with a welcome page. Our SEO company has asked us to get rid of the welcome page with a rewrite. I am struggling to get this to work. Can you help please? I want to rewrite ...
6
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 ...
1
vote
0answers
171 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...