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
0answers
34 views

Use of no-index-meta-tag on pretty URLs?

By now I am fighting through the world of SEO and run into a problem, I think. Let's say I have a page like www.example.com/i-am-a-pretty-url, which is re-written by .htaccess from i-am-ugly-url.php ...
4
votes
3answers
248 views

Which is more SEO friendly, redirect or rewrite?

On Apache 2.4, which is better for multiple migrated URLs in terms of SEO, 301 redirect or rewrite? I have ~50 URLs.
1
vote
1answer
25 views

Where is the URL Rewrite options in IIS 6.2?

I am trying to set a replica of an existing (production!) web site of my new employer on my local machine. By replica I mean: "as close of possible" in terms of versions (IIS, PHP, MySQL, WordPress, ...
3
votes
3answers
178 views

Redirect $.html to $/ mod_rewrite rule clash

I have already remapped URL's from for example /sub/test/ to test.html but I also want to redirect /sub/test.html to /sub/test/ but here seems to be a clash between the rules. .htaccess files is in ...
4
votes
0answers
62 views

What might be causing my site's pages to load more slowly in these IIS Rewrite Module rules?

I have the following IIS rewrite rules that work exactly as I wish on both my development and live servers within an Orchard CMS website, though when enabled, seriously slow the site's page loads. ...
1
vote
1answer
37 views

Best SEO practice to redirect wrong URLs with mixed langage in it

a bad plugin generated some wrong path that returned 404 errors when switching language on Joomla website. The plugin problem is solved (I removed it), now I just want to redirect this few errors to ...
3
votes
2answers
38 views

Is a real http to htttps rewrite possible or is this always going to be a redirect?

I noticed that there are some articles on the Internet that talk about using the apache mod_rewrite module to rewrite a client to server http connection to https. But rewrite does all the changes ...
1
vote
0answers
21 views

httpcontext.rewritepath -> duplicate meta tag

We have a webpage that handle all car manufacturers. Page is called vehicule.aspx. We have a rewrite method for SEO purpose. We gave all manufacturers a unique URL that redirects to the above page. ...
0
votes
1answer
31 views

nginx location rewrite: match /{?x}, {y}, {?z}. Remove y

I am trying to run CiviCRM with Drupal 7 in a docker container of my own design. Unfortunately, I am running into a problem where for some unknown reason CiviCRM is outputting resource requests ...
2
votes
0answers
21 views

How to prevent duplicate pages with different URL slugs on my Cold Fusion site?

My programer has made my website in Cold Fusion and the URLs are like http://www.example.com/article.cfm/articleid/12345/seo-keyword-title but the problem is the page opens even if the ...
2
votes
1answer
9 views

Forcing the removal of query string on a rewrite rule

I find I'm the only one coming up with bizarre behavior on my website. Now one of my extremely important links has malfunctioned. This is the RewriteRule I have that malfunctioned: RewriteRule ^m/?$ ...
4
votes
1answer
53 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
42 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
71 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 ...
3
votes
0answers
79 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
57 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
63 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
27 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
51 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 ...
2
votes
0answers
94 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
73 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
12 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
54 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
31 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
49 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
15 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
40 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
33 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 ...
3
votes
1answer
72 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
58 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
66 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
50 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
40 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
269 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
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: ...
0
votes
2answers
53 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
36 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
79 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
88 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
40 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
35 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
65 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
226 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
569 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
118 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. ...
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 ...