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)

0
votes
1answer
9 views

nginx rewrite where replacement has request parameters

I need help getting this rewrite working. I want www.example.com/sizing-care to rewrite to www.example.com/blog/?p=2301 Currently I have this in the server context in the nginx config: rewrite ...
-1
votes
0answers
21 views

Redirect / rewrite and masking PORT

I have a Windows Server 2012 R2 serving as my DNS, DHCP and employee portal website for my organization (www.mycompany.com). Additionally I have Oracle applications that are installed on Linux ...
1
vote
1answer
25 views

Apache URL redirection not working with mod_rewrite

I want to redirect the URL: http://example.com/site to http://example.com/~username/site I have the following in my httpd.conf file: RewriteEngine on RewriteRule ^/site/(.*) /~username/site/$1 ...
0
votes
1answer
33 views

Google still has record of my old site URL - what to do?

I had a blog site, i.e. http://example2.com, then I bought a new domain, i.e. http://example.com and 301 permanent redirected example2.com into example.com. But when I get into the Google Webmaster ...
0
votes
1answer
12 views

Redirect blog archive into certain format

I asked the question in WPSE before, but the answer I got so far is a complicated one. I'm actually looking for a .htaccess way. Here's what the scenario is: My blog archive URLs were like: ...
0
votes
0answers
17 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
14 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 ...
0
votes
1answer
26 views

Masking / mapping URL's with .htaccess

I've recently been trying to come up with a way of masking the visible URL in the browser (so not 301 redirecting) and still show the same content as the original URL. Here is the scenario... ...
1
vote
1answer
22 views

Rewrite and virtual hosts for moving subdomains to folder-like requests

I am administering a website that previously had mini-sites set up for various physical locations using sub-domains (city1.site.com, town2.site.com, etc.) and I now need to disable these mini-sites. ...
2
votes
5answers
181 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
1answer
102 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 ...
1
vote
0answers
26 views

Geolocalization and Redirection

I have a multilanguage website. My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right language. The structure of the ...
0
votes
1answer
12 views

Apache rewrite to other domain and add get parameters?

I want to rewrite a domain to another domain and add get parameters using Apache's mod_rewrite, redirect or similar. So: www.domain.com -> www.otherdomain.com/?param1=value1&param2=value2 ...
0
votes
1answer
72 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
64 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
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 ...
2
votes
1answer
143 views

Using .htaccess, can you hide the true URL?

So I have a web hotel with 1 main website http://www.myrootsite.com/ and a few websites in subdirectories, in a folder called projects. I have domain names pointing to the subdirectories, but ...
0
votes
1answer
17 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?
1
vote
1answer
76 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
31 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
87 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
1answer
40 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} ...
0
votes
0answers
52 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 ...
1
vote
1answer
94 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 ...
0
votes
1answer
86 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
53 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
2answers
90 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
2answers
460 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 ...
1
vote
0answers
81 views

Allow (and correct the URL) when there is a special character such as %26 using IIS and the rewrite module

I'm struggling with a legacy app that uses special characters like %26 in the URL. The characters don't affect the app but can't be changed, so I'm trying to get IIS to deal with them. I've tried ...
1
vote
1answer
88 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 ...
3
votes
1answer
356 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 ...
2
votes
2answers
59 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 ...
2
votes
1answer
92 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
1answer
91 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
74 views

URL rewrite from www.domain.com/sudirectory to http://domain.com/subdirectory

I need a solution for the following problem: I use a CMS and want the backend only be available at http://domain.com/backend and not at http://www.domain.com/backend. How do I have to change my ...
1
vote
1answer
111 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 ...
2
votes
1answer
73 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 ...
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 ...
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 ...
1
vote
1answer
85 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
51 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 ...
0
votes
0answers
166 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 ...
0
votes
2answers
106 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 ...
1
vote
1answer
458 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: ...
1
vote
0answers
136 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 ...
0
votes
1answer
30 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/, ...
0
votes
0answers
194 views

URL rewriting on multiple domains hosted on one GoDaddy account

Note: I think this question has been asked before but no clear solutions have been discovered. I had developed a site in PHP that uses clean URLs: For example: www.example.com/about ...
2
votes
0answers
37 views

How Come This Website Is Not Suffering From Duplicate Content Issues? [closed]

If you visit the following website http://onedesigncompany.com/ and scroll down then you'll notice that the URL is being changed in the address bar. So, isn't it a duplicate content issue? Is not ...
3
votes
1answer
879 views

Clean URLs without PHP file extension

I want to make my URLs clean, for example: http://sample.com/about-me instead of: http://sample.com/about-me.php This is my code: RewriteEngine On RewriteBase / RewriteCond ...
1
vote
2answers
70 views

Does Google search past the ? or # characters of a URL?

Does Google search beyond the ? or # characters in a URL, example: http://mysite.com/support/general-questions/what-are-the-standard-features-and-functionality?node=node3_50346 Would I be better off ...