Unix/Linux Go Back    


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Redirect URL containing #!

Web Programming


Tags
apache, rewrite, url-redirect

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-16-2015   -   Original Discussion by Junaid Subhani
Junaid Subhani's Unix or Linux Image
Junaid Subhani Junaid Subhani is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 2 August 2017, 11:39 AM EDT
Posts: 191
Thanks: 53
Thanked 2 Times in 2 Posts
Redirect URL containing #!

I have a Rewrite Rule that helps me redirect a page with no hindrance.

I am rewriting

HTML Code:
mydomain.com/best
to

HTML Code:
mydomain.com/#!/
using



Code:
RewriteRule ^\/best\/? /#!/ [R=301,NE,L]

Now I want to Rewrite

HTML Code:
mydomain.com/#!/best
to

HTML Code:
mydomain.com/#!/
using the same rule but it does not work and goes directly to

HTML Code:
mydomain.com/#!/best
how can I solve this ?
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading URL using Mechanize and dump all the contents of the URL to a file scott_cog Shell Programming and Scripting 2 02-17-2014 06:32 AM
Awk: print all URL addresses between iframe tags without repeating an already printed URL striker4o UNIX for Dummies Questions & Answers 18 03-01-2012 05:58 AM
URL Redirect jawak Web Programming 2 09-26-2011 12:25 PM
APACHE rewrite / redirect URL ampo Web Programming 2 10-27-2008 10:25 AM
APACHE rewrite / redirect URL ampo Security 1 10-13-2008 04:27 AM



All times are GMT -4. The time now is 08:11 PM.