Sponsored Content
Top Forums Web Development ReWrite rule giving a hard time. Post 302959913 by Junaid Subhani on Saturday 7th of November 2015 06:14:58 PM
Old 11-07-2015
Wrench ReWrite rule giving a hard time.

Hi all,

I am trying to find a rewrite rule that can help me with the following situation.

So I am currently on a page which has a URL:

http://www.test.mobile.com/#!/shop/phones/max-plus/features/

Now when I hover over a certain link, I can see that it will goto:

HTML Code:
<a href="/shop/phones/android-phones/">Show details</a>
When I click on the link, it goes to:

http://www.test.mobile.com:8080/#!/shop/phones/android-phones

The above link is wrong and I see an "Unable to connect message".

If I remove the 8080, I end up at :

http://www.test.mobile.com/#!/shop/phones/android-phones

and this works.

How can I make a rule that ignores the 8080 being added to the URL ?
 

8 More Discussions You Might Find Interesting

1. Web Development

.htaccess Rewrite Rule

Hello All, I have been asked to create a .htaccess redirect. I have never attempted to work with one of these files. We have a pretty vanilla LAMP setup using rhel4 apache1.3 and php4.2.3. I was instructed to place the .htaccess file in the document root of the site and and to attempt to... (1 Reply)
Discussion started by: jaysunn
1 Replies

2. Web Development

Need help with rewrite rule

Hi, I hosted my site on Apache web server. I wanted to redirect all the users request to a HTML page(maintenance page). I used the below rewrite rule to do ths same. RewriteEngine on RewriteRule .* /maintenance.html The maintenance.html page contains an image. When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
2 Replies

3. UNIX for Dummies Questions & Answers

machine hangs for some time after giving password.

Hi I m trying to take a console of linux machine using putty. Whenever i connect to the machine and give password details to log into the machine it hangs for some time and then it allow the login. I m totally clueless why it is happening suddenly . ---------- Post updated at 01:14 AM... (1 Reply)
Discussion started by: pinga123
1 Replies

4. UNIX for Advanced & Expert Users

Apache rewrite rule help needed

Hi All, I want to redirect from http://localhost/abc/xyz/def?cc=dk&lc=da to http://localhost/abc/mnc/pdf?cc=dk&lc=da. Please suggest a rewrite rule. (0 Replies)
Discussion started by: jagnikam
0 Replies

5. UNIX for Advanced & Expert Users

[SOLVED] htaccess rewrite rule help!

hi there, I need that when user input mysite.com/ponuka/AAA2869 it shows mysite.com/ukaz.php?ponuka=AAA2869 because of facebook likes, and I found out that this is set up as rewrite rule in .htaccess file? how to achieve it? thank you... :confused: ---------- Post updated at 04:47... (0 Replies)
Discussion started by: vogueestylee
0 Replies

6. Web Development

Rewrite Rule looping error

Hi, I have a domain "test.example.com" and i wanted to redirect only request like "test.example.com /index.html" to "test.example.com/index.html?NEW=1". Please note that a extra string "?NEW=1" added at the end of the URL. So Request for http://test.example.com/index.html REDIRECTS TO... (12 Replies)
Discussion started by: Paulwintech
12 Replies

7. Shell Programming and Scripting

awk giving different outputs each time

I have a strange issue. (awk '$3 == "nfs" { cnt++ }; END { print cnt }' /etc/fstab) This is giving different count each time. To test this, tried the one here -bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l 151 -bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l 145... (6 Replies)
Discussion started by: sureshmsi
6 Replies

8. Shell Programming and Scripting

How to prvenent giving password run time in schell scripting?

Hi I'm copying around 20 vi files from solaris server-A to server-B using 'scp' command.I have included all 20 scp commands in one shell script. Proplem is, while executing each scp command its prompting for my NIS password of server A. Please see below How to get rid of password prompt.??? (1 Reply)
Discussion started by: buzzme
1 Replies
phones(4)							   File Formats 							 phones(4)

NAME
phones - remote host phone number database SYNOPSIS
/etc/phones DESCRIPTION
The file /etc/phones contains the system-wide private phone numbers for the tip(1) program. /etc/phones is normally unreadable, and so may contain privileged information. The format of /etc/phones is a series of lines of the form: <system-name>[ ]*<phone-number>. The system name is one of those defined in the remote(4) file and the phone number is constructed from [0123456789-=*%]. The `=' and `*' characters are indicators to the auto call units to pause and wait for a second dial tone (when going through an exchange). The `=' is required by the DF02-AC and the `*' is required by the BIZCOMP 1030. Comment lines are lines containing a `#' sign in the first column of the line. Only one phone number per line is permitted. However, if more than one line in the file contains the same system name tip(1) will attempt to dial each one in turn, until it establishes a connection. FILES
/etc/phones SEE ALSO
tip(1), remote(4) SunOS 5.10 14 Jan 1992 phones(4)
All times are GMT -4. The time now is 12:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy