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
1answer
41 views

How can I redirect all my files on old URLs to new URLs on IIS?

I've been looking and trying out different pieces of code for months to no avail. Most of what I have found is for .htaccess, and not for IIS. I have two scenarios: subdomain1.domain.com to ...
0
votes
0answers
14 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 error [duplicate]

I apologize because I accidentally posted this question as an unregistered user and cannot comment, so I am posting it again. I am having some issues getting the below to work the way I expect. What ...
3
votes
1answer
30 views

IIS URL Rewrite - Rewriting subfolders to query strings

I want to redirect any traffic on my website based on the following rule: https://www.example.com/abc -> https://www.example.com/test1.aspx?c=abc https://www.example.com/def -> ...
1
vote
1answer
51 views

Redirect URL to the same page with parameter

I have this url in my blog: http://www.myweb.com/ and would like to change into: http://www.myweb.com/?lang=en all the URl, of course, in the same page = index.php I need to use param lang=en to ...
4
votes
0answers
62 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 errors

I am having some issues getting the below to work the way I expect. What I am trying to do is take a url like https://example.com/TOPIC/courses/details/143911 but have it sent to php with the ...
0
votes
0answers
23 views

Moving rewrite rules to virtualhost tags instead of directory tags

Currently, I have my rewrite rules in what I believe is in the Directory context. My relevant part of httpd config file is similar to the following: <virtualhost nnn.nnn.nnn.nnn:port> ...
3
votes
2answers
57 views

Writing clean urls with .htaccess

Update - Alright thanks everyone for your tests, it really helped. The code is good. My problem was not having absolute "/" links. (Due to moving from public_html folder). Only 2 concerns i have now. ...
0
votes
1answer
18 views

Can rewriterules work without carets or dollar signs?

Currently when I remap my friendly to non-friendly URLs on my website, I normally use lines like these in my .htaccess: RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} !^$ RewriteRule .* - [L] ...
2
votes
2answers
45 views

Use .htaccess to remove a subdirectory from a URL when it in turn has a subdirectory

Could anybody please tell me how to rewrite http://example.com/forum/topic/topic-name to http://example.com/topic/topic-name I do not want to simply rewrite http://example.com/forum to ...
3
votes
0answers
52 views

nginx rewrite for an url with parameters

I have two types of URL and want to rewrite it for friendly URL. 1. The first: https://example.com/folder/myfile.php?id=xx&param1=yy I want to rewrite to: ...
1
vote
2answers
51 views

.htaccess rewrite with % in query string doesn't work

I am trying to do a rewrite of the site from http://www.example.com/folder/site?data%5Bbranch%5D=xyz to http://www.example2.com/test/ Already tried the query string but facing issues with %. Any ...
0
votes
0answers
10 views

IIS Rewrite to append string?

I'm very new to IIS & IIS Rewrite and am trying to create a rewrite rule that does the following: http://somehostname1 {REDIRECTS TO} http://somehostname1.mydomain.com/abc/test.aspx I've been ...
0
votes
0answers
28 views

IIS 7.5 URL Rewrite Module rewrite /images to an S3 bucket

We have a website hosted on IIS 7.5, and I have installed Using URL Rewrite Module 2.0. On this site, we are currently hosting image assets on IIS, so that an image asset URL would look like this ...
0
votes
1answer
26 views

Do a redirect in IIS, but show the original pretty url?

The following case: A visitor comes in on http://www.example.com/pretty. This gets redirected to http://www.example.com/?ID=ugly. This part works. However, we'd like the visitor to keep seeing ...
1
vote
1answer
30 views

IIS URL rewrite rules not matching

I have this URL www.example.com/music/in/chicago And none of the rewrite rules in placed in my rewriteRules.config below match the above URL....what am I missing? <rules> <clear /> ...
0
votes
1answer
14 views

Is a blank really a directory when dealing with mod-rewrite?

I spent about 20 minutes wrapping my head around this, and finally came to a solution but did not know why it worked. The important lines (as it relates to this question) in the apache configuration ...
0
votes
2answers
31 views

Generate urls for same product with different designs

How do you handle a product url when a brand has the same product type in different shapes? Let me provide you with an example. I have Brand A that has sling bags. There is a sling bag, and there is ...
1
vote
1answer
25 views

Use .htaccess to convert user ID's to usernames? [closed]

I want to use .htaccess to convert the urls that link to profile pages from an ID number to a name. For example, on Facebook, if you were to go to: https://facebook.com/profile.php?id=4 It would ...
2
votes
1answer
56 views

After rewriting URL page not found

I want to rewrite my current URL that is http://localhost/sitename/landing-page/?from=Algeria&to=Afghanistan&submit=Submit to http://localhost/sitename/removals-from-Algeria-to-Afghanistan ...
2
votes
0answers
41 views

IIS URL Rewrite Wildcards

I have some URLs as follows http://localhost/wordpress/latest/joe/12 http://localhost/wordpress/latest/bloggs/14 http://localhost/wordpress/latest/thing/15 I would like to redirect them to ...
1
vote
1answer
43 views

?cid= and ?pid= pages need to be fixed

We have recently changed the platform and design of our website. Now I am having difficulty with url structure. Main product URL shows something like, /categories.php?cid=9 And internal product URL ...
1
vote
0answers
41 views

URL masking to subdomain redirecting to subdomain

I am trying to change the URL of a Joomla site in browser my original URL is like example.com/marketsite/abc and I want to change it to abc.example.com/marketsite/abc I am using following code ...
1
vote
1answer
39 views

After mod_rewrite the internal URLs are duplicated many times when crawling

I'm sure it is my mistake in mod_rewrite rules, but I can't seem to figure it out. I've set up the rules for my new site and all works perfect, unless - I try to create a sitemap. The URLs get ...
4
votes
1answer
164 views

Redirect and removing question mark on URL using htaccess

When I access my site using www.example.com/blog it redirects to example.com/?/blog. How can I remove the question mark, so that the redirection just goes to example.com/blog? My current .htaccess ...
0
votes
1answer
23 views

How should a search for listing results change the URL?

I have a realty site powered by selecting various options from dropdowns to find the right property. How should the listing results URLs be for SEO? Should they all be under a single URL: ...
0
votes
2answers
46 views

Non-www to www Redirects

I'm trying to redirect my main domain non-www to www but I have this error; my add on domain redirects like this: http://www.example.org/example.org/ How can I redirect my main domain without ...
0
votes
0answers
16 views

URL Rewrite help

Is there any way to forward the following? If I do just the: https://mywebsite.blah.com it gives me this error: You do not have permission to view this directory or page. And while I know ...
1
vote
0answers
26 views

How to Exclude URL From PageSpeed Modification

I am currently working with the PageSpeed module and one of the URLs it is modifying I need to restrict. Here is the page I am looking at but it does not seem to have the solution for restricting the ...
0
votes
0answers
14 views

Removing .html & .php from URL [duplicate]

I have searched religiously through the web to find an answer to this quest. I don't know thing about .htaccess or web.config. I'm currently hosting my website through GoDaddy.com. From what ive ...
2
votes
2answers
67 views

Redirect Page after question mark to the same page?

Is there any way to redirect page with question mark to same page? From: /residential-properties/projectname/?utm_source=moneycontrol&utm_medium=email&utm_campaign=project To: ...
3
votes
1answer
86 views

A more specific question about a tricky redirect case

me again. :) I will try to keep this more to the point. Synopsis: I am trying to redirect URLs like this: www.desktopscenes.com/Scenes from Yellowstone (2003)/slides/Morning Glory Pool.html to ...
4
votes
1answer
39 views

Need expert help with tricky redirect problem [duplicate]

I actually posted about this years ago, never got anywhere. Did more research, did testing, got something I thought worked and mostly did, but it seems to get bogged down in infinite loops under ...
1
vote
2answers
30 views

Using .htaccess to get content from directory for sub-domain

I've read a tonne of questions on this and tried a few solutions, but I'm just not getting the results I want. I'm currently using: RewriteEngine on RewriteCond %{HTTP_HOST} ^cp\.example\.net ...
3
votes
1answer
50 views

Omitting and replacing ampersands in urls

I'm using the Ruby on Rails plugin, FriendlyId to create SEO friendly urls based on the name's of the albums and generes within app. If the plugin finds an ampersand in the title it replaces it with a ...
2
votes
1answer
133 views

redirect various http domains to certain https domain via htaccess

I have a bunch of domain names with different TLDs. What I want is to point several domains to the "main"-domain which has a SSL cert (single domain). Like this: https://maindomain.com (main domain ...
1
vote
2answers
424 views

How to change my id and name in php url

How would I change the URL from from: example.com/games.php?id=27 to: website.com/games/271/game-name-here So far I have this in .htaccess: RewriteEngine on RewriteRule ^games/([0-9]+)/?$ ...
0
votes
0answers
31 views

The ultimate recipe to end duplicate content

I decided now its time to fine-tune my apache configuration to finally/hopefully end the duplicate-content madness. I notice the more I pay attention to this, the more income I make from ads. This ...
1
vote
1answer
79 views

Apache 2.2 Not Identifying Safari with HTTP_USER_AGENT

I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. ...
0
votes
0answers
21 views

Is it good to have / after website URL for SEO? [duplicate]

Which one of the following links is the correct and SEO friendly URL? http://apkapp.in/software/view/35531716?download=WhatsApp-2.12.258.apk/ (with / at the end) or ...
0
votes
1answer
36 views

Do we have any redirect solution for all of subURL?

Suppose I redirect exmpale0.com to example1.com , example1.com is newer. Already , I promoted my exmpale0.com into social networks , Suppose I had: http://example0.com/blahblah Now I have ...
1
vote
1answer
19 views

Does /? always equal /defaultscript?

I'm trying to reduce the number of redirects and number of duplicate content pages and somehow I think that the first occurrence of /? in a URL actually means /firstfoundscript? where ...
3
votes
2answers
78 views

Google Webmaster Tools - Duplicate content (slash and none slash version of a page)

Google Webmaster Tools shows a lot of duplicate content in the following pages: www.example.com/example www.example.com/example/ I do NOT offer two versions of any page on my website, when you ...
1
vote
1answer
32 views

making friendly urls without making unfriendly url accessible to anyone

As many know, one can make a friendly URL with mod_rewrite in their .htaccess file like so: RewriteRule ^category/(.*)$ /somescript.php?category=$1 [L] This works as long as somescript.php is ...
0
votes
1answer
37 views

Difference between redirect and rewrite in .htaccess (in relation to SEO and the canonical tag)

Okay so if I'm wanting to remove the extension of a URL but my canonical tags point to the url with the extension I can't use a 301 redirect without it negatively affecting SEO. Does the same go for ...
0
votes
1answer
57 views

Why does http://example.com equal http://example.com/? [duplicate]

When I access http://example.com in a web browser, the browser adds a slash to the end of the URL and loads the page. The part that scares me is that duplicate content exists when one uses the ...
1
vote
1answer
119 views

URL Domain Forwarding or Masking a Single Page?

I have a page on my WordPress site called mysite.com/group and it has a bunch of text content. I want people to be able to access this page from the URL mysitegroup.org so it uses the ...
0
votes
0answers
10 views

URL Rewriting - Is it still Relevant to Search Engine Rankings? [duplicate]

As or July 2015, Does URL rewriting have any effect on search engine rankings? Is www.example.com/shiny-product better than www.example.com/products.xyz?product_id=123 ?
1
vote
1answer
62 views

How to keep friendly URLs consistent?

I downloaded a site with a crawler script (HTTrack) and now have a few hundred HTML files that need to be edited and re-deployed. The original site ran on a combination of Drupal and a lesser known, ...
0
votes
1answer
17 views

stopping accessibility of internal script files via mod_rewrite

Turns out after researching, one site found duplicate content on my website. The reason is because the unfriendly php file that friendly URLs link to was apparently discovered by a robot and then got ...
1
vote
1answer
36 views

Link re-interpreted by browser does not work

I have a problem with links generated by php, for example this link works: ...