Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [url-rewriting]

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 the files used to generate a web page and the URL that is presented to the world.

3
votes
1answer
1k 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: https://example.com/folder/myfile/xx/...
4
votes
0answers
224 views

Ubuntu 14.04 can't enable .htaccess

I'm developing a website local and just switched from Windows to Ubuntu 16.04 - Sadly my .htaccess doesn't seems to work since rewrite rules don't apply and sources can't be found. I activated: sudo ...
4
votes
0answers
466 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 URI ...
2
votes
0answers
384 views

How to use .htaccess rewrite rules to remove .php and folders from URLs?

I'm trying to simplify the URLs using rewrite condtions and rules on my local WAMP website. For example I would like to have /ProjetSyntheseFAC/mammiferes instead of /ProjetSyntheseFAC/pages/animaux/...
2
votes
0answers
85 views

.htaccess to show a page from the main site on another domain

I have 2 x domain names https://www.example.com - This is my main site. http://www.example-liverpool.com This is my Liverpool sub website example.com/liverpool I've presently got URL forwarding ...
2
votes
0answers
538 views

Nginx request map and redirect have no effect

I want to rewrite/return request to new one I have: map map $request $new_request { include url_rmap.conf; } file url_rmap.conf # here i have tried all variations $scheme://d.dom https://...
2
votes
0answers
43 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. ...
2
votes
0answers
834 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
0answers
24 views

Infinite redirect loop with IIS 8.5 Drupal

After configuring my website, i stuck in a infinite redirect loop. I have 6 domains, example.com is main domain. example1.com, ..., example5.com are forwarding to example.com. Doesn't matter which ...
1
vote
0answers
42 views

nginx rewrite rule not applied (using contao cms)

I am trying to make a redirect for https://mypage.com/foo to https://mypage.com/bar while still keeping https://mypage.com/foo in the browser url. I have tried several combinations of different ...
1
vote
0answers
14 views

How do I access the wp-admin interface of a site that lives inside a joomla folder, using IP address / siteground server URL?

For historical reasons, we have several sites that live inside the public_html folder of a different site (all hosted on sitegrounds). To complicate things up, the root domain has a name that is the ...
1
vote
0answers
35 views

What's the best practice URL Path with multiple occurences of the same parameter?

Case User searches on a website for "cake" and filters the results via two categories: "united states" and "germany". Researched best practices SEO relevant and as short as possible URL if possible ...
1
vote
0answers
35 views

Remove non-existent language directory from URLs under nginx

I've got URLs like this: /lang/path-to-file.ext and I want to remove the "lang" because it doesn't exist: /path-to-file.ext How do I do that on an nginx server?
1
vote
0answers
33 views

If I link to clean URLs based on the page title but redirect to URLS with ids as part of a site migration, is that bad for SEO?

I'm importing stuff from a Drupal site that has a couple of alias URLs: /node/123 /my-alias-node-title My new site is a very simple CMS handmade in PHP by me as a practice. In the new system, the ...
1
vote
0answers
108 views

Method to redirect website subfolder to new website in IIS

We currently have a website, let's call it https://supersystem.example.com We also offer customized versions of the website to clients, in the past we would throw those custom files into a sub3folder ...
1
vote
0answers
219 views

IIS showing 404 error for CakePHP routing prefixes for instance located in subfolder

I have this Single Page Application built using AngularJS that resides in the document root. The SPA communicates with an API built using CakePHP 3.5.x. The CakePHP instance resides in a folder named ...
1
vote
0answers
488 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 in ...
1
vote
0answers
219 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 ...
1
vote
0answers
41 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
0answers
179 views

How to implement country domains based on geo IP address in ASP.net?

I want to configure a domain such that when the user goes to my website, the system identifies the IP country of user and auto changes www.mysite.com/index.aspx to www.unitedstate.mysite.com (for US ...
1
vote
0answers
821 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 www.example.com/...
1
vote
0answers
152 views

How can I mask sub-directory to work as DocumentRoot for multiple domains pointing to the same location?

I am trying to mask sub directories to effectively work as DocumentRoot for multiple domains. e.g. I have two domains - domain1.com & domain2.com both pointing to the same location. I want ...
1
vote
0answers
194 views

Handling URL Rewrite in IIS5

On an older server, using IIS5, I have an error handling page which for some missing pages uses Server.Transfer to load other pages based on a database. The pages all work for a browser but some ...
0
votes
0answers
43 views

Nginx rewrite for wp-includes works but not the one for content/uploads

I want to perform a few rewrites: this actually works: rewrite ^/includes/(.*) /wordpress/wp-includes/$1?putyo_happybits=administrator last; and I get this: http://everhide.wordpress.dev/includes/...
0
votes
0answers
28 views

What's the effect on SEO if you can change part of a URL and still receive the same page?

I have a domain for my webshop, and for all the category pages the structure is like this: www.domain.com/category-NAME/category-NUMBER. See the screenshot below for an example. I can change the ...
0
votes
0answers
26 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 that ...
0
votes
0answers
715 views

Using mod_rewrite to set cookie and modify domain name

I have two editions of a website. The mobile and desktop version. All desktop sections of the website have normal urls and mobile sections have subdomain urls suffixed with the word mobile. Example: ...