After URL redirection, url not displaying new address when clicking on links

I've got this website, http://www.manndirectory.com, it's a Joomla CMS with the SOBI2 business index installed. I've set it up so that their can be different entries based on their building location. SEF is turned on for both Joomla and SOBI2.

I've set up 301 redirects so that if you type in www(dot)manndirectory(dot)com/1407 or www(dot)manndirectory(dot)com/1500, it will take you to a homepage with info for that building.

That works fine but clicking on any link will not change the URL in the address bar.

Here is that code in the htaccess file Redirect 301 /fashion_directory/1407 http://www(dot)manndirectory(dot)com/index.php?building=1407 Redirect 301 /fashion_directory/1500 http://www(dot)manndirectory(dot)com/index.php?building=1500

I'd rather use URL rewriting than redirection. It's just a temporary solution implemented.

I'd like this URL: http://www(dot)manndirectory(dot)com/index.php?building=1407

to display as: http://www(dot)manndirectory(dot)com/1407

And I'd like all subpages to append after the 1407 (ex http://www(dot)manndirectory(dot)com/1407/a/ or http://www(dot)manndirectory(dot)com/1407/activewear/vestiti-fini.html

Can anyone shed some light on this. I realize it is an indepth question to a very intensive problem. But I'm at a bit of a loss.

BELOW IS THE HTACCESS FILE I AM USING:

## # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $ # @package Joomla # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # ##################################################### ## Can be commented out if causes errors, see notes above. Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On # RewriteRule ^/1407$ /tmp ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # ## Deny access to extension xml files (uncomment out to activate) #<Files ~ "\.xml$"> #Order allow,deny #Deny from all #Satisfy all #</Files> ## End of deny access to extension xml files RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits # Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root) # RewriteBase / ########## Begin - Joomla! core SEF Section # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule (.*) index.php RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # ########## End - Joomla! core SEF Section Redirect 301 /fashion_directory/1407 http://www.manndirectory.com/index.php?building=1407 #RewriteRule index/building/(.*)/ index.php?building=$1 #RewriteRule index/building/(.*) index.php?building=$1

-------------Problems Reply------------

If you want new URLs you must link to those new URLs from the pages of your site.

URLs are defined in the links that the user clicks on.

Mod_rewrite cannot change the links on the pages of a site. Instead it reacts to a URL request coming from the browser after the link is clicked.

Your .htaccess file is an old version. There were many changes recently made. These changes appeared in the Joomal 1.5.23 and 1.6.2 versions of the file.

Category:.htaccess Views:1 Time:2011-04-13

Related post

  • IE 9 does not display pages when I click on links 2012-08-29

    IE 9 does not display pages when I click on links. Files that are attached also do not open. The tab that opens is blank. The same page works fine when I use Google chrome or other browsers. I looked at one of the threads and tried opening the link o

  • Gets message ‘Internet Explorer can not display this page’ when click on links in Windows Live Mail. 2012-01-01

    Original Title: Internet Explorer can not display this page. When I click on links in Windows Live Mail I get the message Internet Explorer can not display this page. If I run Troubleshoot, it says there are no prblems. If I open Internet Explorer th

  • How to display multiple Gridviews when clicked on link tag at the same position? 2014-03-19

    I have a page in which the left section has 4 link tags Report 1 Report 2 Report 3 & Report 4 When user clicks on Report 1 that particular Gridview 1 will be displayed...The same should happen with other Reports..How do I achieve this functionali

  • URL Redirecting properly but displaying object not found 2012-02-23

    I have followed this thread. Question mark in the end of RewriteRule My requirement was also same. My page is redirecting(301) properly but it's displaying OBJECT NOT FOUND My Actual URL http://mydomain.com/iphone_advanced_search_result.php?keywords=

  • Message: "Internet Explorer cannot display the webpage" when clicking on link for Yahoo mail or AOL mail 2013-10-02

    Everytime I go to aol or yahoo and click on the icons for the mail i always get this message Internet Explorer cannot display the webpage why Original title: Internet --------------Solutions------------- Hi, Check after each step. 1. Verify that the

  • log4j in java project displays wrong file when clicking on link from Conversion Character 2012-03-06

    I created a Java 6 project in Eclipse that uses log4j to output debug info to the console. We'll call this Project1. No problem. Then I copied the entire contents of the folder into a new folder (apparently, not a good idea). Then, I Imported Existin

  • Internet Explorer not following relative redirect URLs across domains 2010-11-04

    I have tried this in all browsers and works in all - except IE. Here's is the scenario: in Host A Page 1 we will redirect you to host B when you click a link: <%@Page Language="C#"%> <script runat=server> override protected void OnLoad(Ev

  • TM symbol not displaying correctly on redirected URL 2010-01-25

    I have a url that redirects to a page on my main site. For some reason, when I access through the rewritten URL, a TM symbol is showing up as â¢, but when I access through the main site, it shows up correctly. The urls are http://waterlessmilkwarmer.

  • Get redirected url from code 2010-04-24

    I'm using an API which, given a url, redirects to a file on the server. The file names have "_s,_m and _l" appended to the end (small, medium, large). However, since the url's querystring is parsed dynamically, I don't retrieve the actual file name.

  • PHP: Check if URL redirects? 2010-06-03

    I have implemented a function that runs on each page that I want to restrict from non-logged in users. The function automatically redirects the visitor to the login page in the case of he or she is not logged in. I would like to make a PHP function t

  • Google OAuth 2.0 redirect URL when user refuses/cancel consent screen 2015-03-13

    I'm migrating the Sign-in with Google on my PHP app from the old and now deprecated OpenID to the new OAuth 2.0. All I need from user is his email address, so I can register or log him in. It's all working as expected, but I noticed that if user refu

  • Why is my fully qualified domain name request url getting converted to an ip address request url by the Cassini web server? 2009-04-20

    I have a web application which depends on the browser client retaining the FQDN in order for it to work, but what is happening is that in multiple browsers I am seeing the url get converted into an ip address url (containing the correct IP address) w

  • Rails/Passenger/Apache: Simple one-off URL redirect to catch stale DNS after server move 2009-08-04

    One of my rails apps (using passenger and apache) is changing server hosts. I've got the app running on both servers (the new one in testing) and the DNS TTL to 5 minutes. I've been told (and experienced something like this myself) by a colleague tha

  • Error URL redirection 2010-05-09

    urls.py: url(r'^book/(?P<booktitle>[\w\._-]+)/(?P<bookeditor>[\w\._-]+)/(?P<bookpages>[\w\._-]+)/(?P<bookid>[\d\._-]+)/$', 'book.views.book', name="book"), views.py: def book(request, booktitle, bookeditor, bookpages, bookid,

  • AJAX redirect dilemma, how to get redirect URL OR how to set properties for redirect request 2010-05-10

    First, I'm working in Google Chrome, if that helps. Here is the behavior: I send an xhr request via jQuery to a remote site (this is a chrome Extension, and I've set all of the cross-site settings...): $.ajax({ type: "POST", contentType : "text/xml",

  • Capture a redirect URL using PHP 2010-06-08

    I want to use PHP to get the URL of the page to which the following address redirects: http://peacecorpsjournals.com/journal/6731 The script should return the following URL to which the URL above redirects: http://ghanakimsuri.blogspot.com/ ---------

  • Handling various types of URL redirects 2010-09-06

    Generally, when writing HTTP client software, the HTTP protocol provides sufficient information for how to handle redirected URLs. Specifically, if an HTTP request returns a redirect code of 302 or 307, the redirect should be considered temporary and

  • How to know redirect URL 2010-09-27

    Possible Duplicate: A way to figure out redirection URL C# Issue: If we type the following url (see warning) http://migre.me/13rQa It will redirect to oooooo1.ru I like to know the redirected URL from C#. Anybody knows how to do it. P.S: These mentio

  • How would I redirect urls in this way? 2010-10-02

    So, this is a little bet more of a high level question. I'm not necessarilly looking for specifics, but more of the general tools and technologies I need to use. I'm really new to website hosting and development. I want to redirect a domain, say some

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.138 (s). 11 q(s)