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)

2
votes
1answer
67 views

mod_rewrite change . (dot) to - (hyphen)

I'm moving my site and the URL structure has changed because of the new CMS. The old URLs are similar to /my.products.htm, but on the new site we are changing the URLs to /my-products. Is there a way ...
3
votes
2answers
652 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 ...
1
vote
1answer
291 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? ...
2
votes
2answers
112 views

file need to go through a php page using .htaccess

I'm looking for a way to convert this type of URL: http://www.example.com/dl/F5EGD6 Into http://www.example.com/dl/files/my_file.zip using a PHP page to request the URL from the DB with F5EGD6. I ...
0
votes
0answers
72 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 ...
1
vote
1answer
36 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 http:/...
1
vote
1answer
59 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 /> <...
3
votes
2answers
3k 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 ...
0
votes
1answer
17 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 ...
1
vote
1answer
46 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
2answers
87 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 ...
17
votes
4answers
686 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 labouseur.com/...
2
votes
0answers
84 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 http:/...
1
vote
1answer
41 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 ...
1
vote
0answers
62 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 ...
3
votes
1answer
89 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 this:...
0
votes
1answer
24 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: /listing-...
0
votes
2answers
58 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
17 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
41 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 ...
7
votes
3answers
245 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: webmasters.stackexchange.com/questions/3079/should-i-use-a-...
3
votes
1answer
395 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
2
votes
2answers
86 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: /residential-...
4
votes
1answer
42 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
42 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
82 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
249 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
686 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]+)/?$ games....
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
0answers
24 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 http://apkapp.in/software/view/...
1
vote
1answer
51 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 ‍http://...
1
vote
1answer
21 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
82 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 ...
0
votes
1answer
53 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
74 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
183 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 mysite.com/...
1
vote
4answers
14k views

How do I do URL re-writes on Plesk?

I am very new to URL re-writing and I am using Plesk which is window-based web server, hence I can't use Apache's mod_Rewrite. Can anyone tell me what is the proper procedure for this?
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
573 views

Redirect subdomain to folder without changing the URL

I'm trying to achieve masking subdomains to folders using .htaccess UPDATE for the sake of clarity: I Would like the user to enter the url: subdomain.example.com and stay in the same url while ...
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: http://masterarbeit-im-unternehmen.de/Thema_Analyse-und-Darstellung-der-%C3%B6kologischen-Vorteile-des-Remanufacturings-f%...
1
vote
0answers
24 views

UCC cert for single IIS7.5 site with multiple domains forwarded via rewrites

We have a site that has 80-some-odd aliases. In other words, each host name's DNS entry points to the same IP address and port number, and when they reach our IIS7.5 server they are forwarded to the ...
1
vote
2answers
33 views

Should the canonical tag point to the rewritten URL of the page even if it doesn't have a valid directory structure?

The structure of my url is http://www.somesomewebsite.com/ShowProduct.aspx?ID=12. I am doing a permanent redirect (301) to http://www.somewebsite.com/product-category/12/this-is-my-product-name/. ...
5
votes
2answers
901 views

Is a trailing slash appropriate before URL parameters?

I understand that http://www.example.com/product and http://www.example.com/product/ can actually be seen as 2 different URLs and is probably best avoided for SEO purposes, but how does this ...
1
vote
3answers
80 views

IIS7 webpage redirect question

Noob question here. I searched, but couldn't quite find anything that would explain how to do this. I'm using IIS7 on a 2 server web farm with traffic being load balanced to either of the two servers. ...
1
vote
2answers
1k views

What rewrite rule would show the 410 (gone) status for removed forum URLs?

I have removed a forum system from my CMS and now I want to return an 410 status code whenever a search engine visits the former posts. I know that I have to use a number of Rewrite Rules to do the ...
1
vote
2answers
154 views

Will http to https rewrite rule affect SEO ranking?

I recently started serving all my pages over https instead of http. I did so using this rewrite rule: <rule name="force https" stopProcessing="true"> <match url="(.*)" /> <...
1
vote
1answer
65 views

SEO issue when migrating to wordpress – changing urls and file names etc

I get an issue with the SEO of my website. Before I was on top of Google with "Icecom", but I migrated my website on WordPress. All my urls have changed and the body too... What I did for my new SEO: ...
1
vote
1answer
129 views

How to rewrite laravel /public directory [duplicate]

So by default the index.php is in the public directory. I want to rewrite the url so that abc.com/public/ becomes abc.com/ ?? I am very new to url rewriting ..