Questions tagged [url-redirection]

1

votes
1

answer
469

Views

Redirect User Back to same URL after posting data in golang

I want to redirect user to the page that he has came from after serving a form and taking the input from that form upon successful submission he has to redirect to the same page. I want this to be done in Golang. Thanks in Advance
user8800020
1

votes
1

answer
794

Views

Root Route Not Redirecting in Express

My issue stems around strictly the '/' route. I think this is called the root route. When a user connects to my site, I check to see if there's session data on the said user so that he/she doesn't always have to re-log when the browser closes. If there is no session data on the user, then my website...
Programmer wannabe
1

votes
2

answer
22

Views

Web - Redirect website url that is being used by a request

I know that the title isn't very clear, but my problem is kind of complicated. Lets say I am on this website (lets say, example.com), and the website is taking images from another website ( images.com ). I want to change something so that instead of images.com, example.com takes images from myimage...
Unknown
1

votes
1

answer
87

Views

Redirect all subfolders of a language to the language folder

I'd like to redirect all subfolders of a language to the language folder. For example : http://example.com/es/folder1/ http://example.com/es/folder1/folder2/ redirect to http://example.com/es/ I tried different options such as Redirectmatch 301 ^es/(.*)$ www.example.com/es/$1 or RewriteRule ^es/(.*...
Florian
1

votes
0

answer
37

Views

Error while recording UI script in Neoload

I'm facing an error in Neoload while recording a UI script. The redirection is not happening, I'm getting the code 200 for the status of the page instead of 301. Please help me out.
Dheeraj A S
1

votes
1

answer
178

Views

Force HTTPS using .htaccess doesn't always work

with this rules RewriteEngine On RewriteBase / # For API RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ - [L] RewriteRule (^api\/) api.php [QSA,L] RewriteRule ^ /index.html RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]...
Webman
1

votes
0

answer
460

Views

Control S3 Bucket Hosted Website's trailing slash redirects

Automated the deployment of static sites to S3 with Ansible - not using any of Ansible's built in tools, necessarily, just using the CLI and local commands. It's been working really well, but one issue I can't shake is when creating redirects, visiting the redirect with a trailing slash gives a 404,...
Ben
1

votes
0

answer
33

Views

Apache rewrite “domain.com/folder” to “folder.domain.com” with keeping redirection from “folder.domain.com” to “domain.com/folder”

I want folder.domain.com to point at domain.com/folder and I want domain.com/folder to be rewritten in the URL of page in the browser to folder.domain.com. In both cases I want to see an URL like this folder.domain.com. Tried: Redirect 301 /subdomain http://subdomain.example.com Neither work: Rewrit...
Tomekosi
1

votes
1

answer
37

Views

Redirecting 301 Page to url and Subpage to a different url

I try to redirect a page to an url and subpages to a different url. But subpages are now redirected to the frontpage. I guess because the first redirect interferes the 2nd one. Can you please help? The current setup: # BEGIN 301 Redirects Redirect 301 /page/ /new-page/ Redirect 301 /page/a/ /kb/diff...
Marcel Isler
1

votes
0

answer
8

Views

how to make a pass word that will redirect me to another page only when its correct. all while staying on the same tab

I'm a beginner and I'm using HTML to embed aspects onto google sites. forgive me if my title wasn't specific or my question is idiotic. this is my code: Enter the password to proceed Password: the problem is it will redirect me to the other page on a new tab that it opens is there any way to keep i...
Max Ratcliff
1

votes
0

answer
110

Views

Iframe execution blocked when navigated using anchor tag having target _blank

There is a page containing an iframe that loads a page from the same domain. The page is not executing when navigating using and anchor tag that has target set to '_blank'. Getting the following error Uncaught DOMException: Blocked a frame with origin 'https://some.url.com' from accessing a cross-or...
Mayank
0

votes
0

answer
3

Views

what are the common approach for url redirection? (without htaccess)

I want a simple and constant url to trigger the download of a file whose name/url changes over time. For example I want this url : https://www.website.com/downloads/sofware.zip (with sofware.zip not existing on the server) to be redirected to https://www.website.com/downloads/sofware_v2.0.3.zip and...
Charles
1

votes
0

answer
275

Views

url rewrite or redirect in reactjs

I have a react app and the folder structure like below : + src + client + app + actions + components + config + lang + public . . . + server + lumen-api . . . in this point I send a request to server side with this url : '/api/login' and this request go to 'http://localhost:8080/api/login' . I sepe...
Hanik
1

votes
0

answer
117

Views

Apache Reverse Proxy Preserve URL even after redirect

I have an apache reverse proxy setup from where I am redirecting to a completely different URL. The destination URL is a cloud-hosted service different from the Apache installation location. The redirect is happening properly. But how do I preserve the original URL and mask this new cloud-hosted URL...
Shiva
1

votes
1

answer
21

Views

Redirect in .htaccess doesn't work for url existing

I create a .htaccess to redirect all url to index.php It works for url that doesn't exist but for other url (which exists) it doesn't work & I don't know why. Isearch & I tried all configuration but it seems it doest work. Here my .htaccess : RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILE...
LynxWeb
1

votes
1

answer
147

Views

Angular 4 redirect for my old hash URLs to new without hash URLs is not working

we have a single page application which was previously in simple tab structure where all the tab clicks has respective #urls. Examples: http://tvsntorq.com/#Price, http://tvsntorq.com/#Colour But now I have implemented this in Angular 4 and now we have urls without hash. Which look like these: http:...
vishal kokate
1

votes
1

answer
251

Views

Redirect 301 wp url based on year/month/day to post-name.html

I recently changed the permalink structure from https://www.domainName.ro/2018/04/10/post-name.html to https://www.domainName.ro/post-name.html, using: 'RedirectMatch rule 301 ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/([^/]+).html$ https://www.domainName.ro/$4.html' and works. Now I want to redirect, wi...
Sorin Antonie
1

votes
1

answer
162

Views

Preventing direct access to my HTML page

I'm currently working on a Contact Us page (contact.html). The sending of email is handled by a php file (mailer.php). So far, the functions I want to do is working properly, the emails are being sent, i get redirected to my success page and all. However, I want to restrict people from accessing my...
zoenightshade
1

votes
1

answer
26

Views

Site upgrate: update+https vs 2 stage migration

Newbie question here. I'm about to rebuild a site for a client, moving from old CMS to WordPress (with updated IA) and HTTP => HTTPS. My question is, what is the best approach to do this that is the least complex? Which will introduce the least opportunity for errors? Option A: Port to Wordpress and...
Tys
1

votes
1

answer
33

Views

How to redirect URL

How to redirect url from www.example.com/file.html to www.example.com/folder/file.html using .htaccess and web.config I have been searching for hours and have found several topics but none works for us
1

votes
0

answer
497

Views

How to redirect to an external URL from an Angular2 route's canActivate in Chrome while maintaining Referrer?

I may be slightly off with what's going on here because of how deeply Observers nest in Angular and the difficulties involved in debugging that sort of thing, but this is what I'm observing. I have an Angular 5 application using @angular/router 5.2.6, I have a Guard service, I have an external SSO-t...
Sloloem
1

votes
2

answer
34

Views

Autofill form contents when redirecting from landing page to full registration page

I am using the following form on a landing page of domain A to let users make a fast registration through domain B's API. When form is submitted successfully, users are redirected to the full registration page of domain B, using the following code: var baseUrl = 'https://www.domainb.com'; var succes...
Michal
1

votes
1

answer
36

Views

Google refuses to index new site URL

This is either a problem that Google is inflicting upon me, or a problem I am inflicting upon myself. I'm not totally sure. When I first created my website a couple years ago, it followed a path similar to: http://www.mywebsite.abc123.com Now, after a change in hosting services, I changed my domain...
Ryan Thierman
1

votes
1

answer
20

Views

Redirect only oldsite.com to newsite.com, but not include the oldsite.com/wp-login.php

I need some help on how to redirect a specific URL into another URL. Let's say I enter oldsite.com and it will redirect to newsite.com. Inside oldsite.com I installed Wordpress, but when I accessed oldsite.com/wp-login.php it redirects me to newsite.com and show a 404 error. I only need to redirect...
jovenne
1

votes
0

answer
150

Views

How to get the access token from OpenId redirect url

I have a WPF desktop application which used old login authentication way. Now I need to change the login mechanism to OpenId. Below is my code to get an access token: public void Login() { string ServerUrl = 'idpq.company.com'; string ClientId = '263729dc'; string Resource = ''; string RedirectUri =...
Kerwen
1

votes
1

answer
28

Views

How do I make a dynamic URL for a 404 xhtml page?

I have defined a location for the page in the xml 404 /faces/public/error-page-not-found.xhtml but I want the URL to be like below: faces/{variable}/public/error-page-not-found.xhtml where the value of the variable will change according to different situations
Phalguni Vatsa
1

votes
0

answer
82

Views

How can i set a placeholder when redirecting my url with wildfly standalone handlers?

I'm trying to redirect my URL with the following settings in the standalone.xml: My handlers point on to the matching angular frontend-projects in the deployments folder of my wildfly-server, where also my EAR-file is deployed. This works fine except for one case: If i refresh my detail-page, which...
Kritte
1

votes
0

answer
24

Views

hide target url when redirecting using htaccess

I have a problem: I have several customers with websites and e-mail-adresses. They use my providers webmail-service which is simply Roundcube. So instead of having them all to go to http://server20.shittyserviceprovider.com/webmail I want them to hit their own website URL followed by /mail like http...
MCK
1

votes
1

answer
35

Views

Need help creating regex redirects for URLs with query strings attached

The issue is when using infusionsoft or another email platform, when a URL is used in an email, it adds a query string to the URL. If that URL is being redirected, it will not redirect properly with the query string attached, sending the user to a 404 page. I am trying to figure out how to correctl...
1

votes
0

answer
39

Views

Getting URL prefix in Play Framework

I have an app that is hosted on the test server on the url 192.168.42.42/foo-app. Locally, it works on localhost:9000. I also have a route /docs/swagger-ui that must redirect to docs/swagger-ui/index.html?url=/docs/swagger. Here is a routes file: GET /docs/swagger controllers.Asset...
alex
1

votes
1

answer
15

Views

how to redirect wp past site without wordpress pages

Client no longer wants Wordpress and wants new site in HTML5 CSS3. I have the past site map with links to past pages. Seeing he no longer has Wordpress how do you redirect the old wordpress pages without wordpress to new html pages. His links to old site are still active but goes no where seeing the...
Tim Weber
1

votes
0

answer
37

Views

htaccess to redirect to another page if the url contains '.php'

I'm trying to redirect any pages on my site that contain a .php at the end to th home page. Looking around online and can't find anything on how to do this. I've tried RedirectMatch '^/.*.php/?$' 'https://www.website.com/home/' But it doesn't seem to work, causes an infinite loop
1

votes
0

answer
28

Views

rewrite rule nginx in external file

i am trying to redirect some specific url with nginx, I have a file when I put the rule, then I have an include line on the host myfile.txt (the path is /home/user/Documents/myfile.txt) rewrite http://mydomain.io/manuales/Manuales/10-BLD1001RGB/files/assets/basic-html/flipbook.html https://mydomain....
Gamboa YGB
1

votes
1

answer
573

Views

Dynamic Url rewrite in ASP.NET CORE

I'm trying to rewrite a URL, and detect if a portion of the URL exists, then process that string to finally create a final URL. From this article, I found so far a way to replace segments of the URL using a regex. My case is the following: given the URL www.whatever.com/segment1/segment2?para...
RobertRodriguez
1

votes
0

answer
11

Views

Redirection without template?

Why in my view i'm redirect in new page without template ? This is my view/Profiles/tmpl/borrowings.php and that is my View/Borrowings/tmpl/form.profile.xml
Mickael Nappée
1

votes
1

answer
46

Views

http redirecting to index.php instead of https

So I need to redirect the HTTP protocol to https, my SSL is already enabled and working, but the problem is: Whenever I enter an HTTP URL, I get redirected to the index.php page of my site. Here's my code: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L...
Matt
1

votes
1

answer
572

Views

Receive Oauth2 Authorization code from redirected URI

So I wanted to learn about the process of OAuth2 Authentication and decided the best way to do so would be to code the process. So using the Google Sheets API I am able to get the authentication code and redeem it for a token and then access the Sheets methods for posting and such, my only issue is...
Andy Riedlinger
1

votes
1

answer
57

Views

Logout user when app redirect to another app Meteor JS

I have 2 apps, one for auth while the other for products. After login or verification of email, the user is redirected to the products app. On redirection, the recently logged in user is instantly logged out, so a reference to the logged in user becomes null, and I'll need the logged in credentials...
kehinde
1

votes
0

answer
98

Views

Redirecting a url in .htaccess adding delay and message

I am trying to redirect a url using .htaccess file. I need the system to stay on that api page to send a message and then redirect to another page after 10 sec. For redirecting with query parameters from url http:// …./id/ to https://... /?id=id, I found this RewriteEngine On RewriteRule ^url/(...
Mrunal Hirve
1

votes
0

answer
102

Views

how to use arsoft.tools.net(DNS Server) for redirecting some host names to local IP?

i have a local network and i want to create a local DNS server to redirect all requests of clients (like www.google.com) to a local IP. I used arsoft.tools.net and referring to THIS similar question, i tried this c# code : class Program { static void Main(string[] args) { using (DnsServer server = n...
Behnam Sarkheil

View additional questions