When i login in wordpress component at admin side of joomla at that time i m not redirecting login page to dashboard of wordpress and when i go at site side at that time i m with login status..and then i try to login from admin site then i m redirecting to dashboard..

what is the issue is in my coding or site..
Plz give me solutions..Thank You

check the .htacces file in your hosting account

R u using plugin for redirect or code , if u using code than paste here

this is my .htaccess file but there is no link redirecting.

#
##
# @package      Joomla
# @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license      GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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

## 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!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions

RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]

# RewriteCond %{REQUEST_URI} /property/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ %{REQUEST_URI} /|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]

# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]


redirect /manuel-antonio-real-estate /manuel-antonio-real-estate.html
redirect /jaco-property /jaco-property.html
redirect /jaco-real-estate /jaco-real-estate.html
redirect /manuel-antonio-property /manuel-antonio-property.html 
redirect /manuel-antonio-real-estate /manuel-antonio-real-estate.html
redirect /categories/pavones-properties /pavones-properties.html
redirect /categories/pavones-real-estate /pavones-real-estate.html
redirect /quepos-real-estate /quepos-real-estate.html
redirect /categories/dominical-condos /dominical-condos.html
redirect /dominical-luxury-homes /dominical-luxury-homes.html 
redirect /categories/dominical-luxury-vacation-rentals /dominical-luxury-vacation-rentals.html
redirect /categories/manuel-antonio-homes-for-sale /manuel-antonio-homes-for-sale.html
redirect /categories/manuel-antonio-real-estate-for-sale /manuel-antonio-real-estate-for-sale.html
redirect /categories/ojochal-real-estate /ojochal-real-estate.html
redirect /categories/ojochal-properties-for-sale /ojochal-properties-for-sale.html
redirect /uvita-real-estate /uvita-real-estate.html
redirect /categories/costa-rica-condos-for-sale /costa-rica-condos-for-sale.html
redirect /categories/costa-rica-ocean-view-condos /costa-rica-ocean-view-condos.html
redirect /categories/fractional-ownership-property-costa-rica /fractional-ownership-costa-rica.html
redirect /fractional-ownership-costa-rica /fractional-ownership-costa-rica.html
redirect /fractional-ownership-property-costa-rica /fractional-ownership-property-costa-rica.html
redirect /categories/fractional-real-estate-costa-rica /fractional-real-estate-costa-rica.html
redirect /categories/golfito-properties-for-sale /golfito-properties.html
redirect /categories/golfito-property /golfito-property.html
redirect /golfito-real-estate-for-sale /golfito-real-estate-for-sale.html
redirect /categories/golfito-real-estate /golfito-real-estate.html
redirect /jaco-beach-properties /jaco-beach-properties.html
redirect /categories/jaco-real-estate-for-sale /jaco-real-estate-for-sale.html
redirect /categories/ojochal-property /ojochal-property.html
redirect /categories/pavones-real-estate-for-sale /pavones-real-estate-for-sale.html
redirect /categories/quepos-properties /quepos-properties.html
redirect /quepos-real-estate-for-sale /quepos-real-estate-for-sale.html
redirect /categories/south-pacific-properties /south-pacific-properties.html 
redirect /costa-rica-real-estate-in-the-south-pacific /costa-rica-real-estate-in-the-south-pacific.html
redirect /categories/pavones-properties-for-sale /pavones-properties-for-sale.html
redirect /uvita-homes-for-sale /uvita-homes-for-sale.html
redirect /categories/southern-zone-costa-rica-real-estate /southern-zone-costa-rica-real-estate.html
redirect 301 /dominical-condos.html /Dominical/condos.html
redirect 301 /dominical-homes-for-sale.html /Dominical/homes.html
redirect 301 /dominical-hotel-leisure.html /Dominical/hotels.html
redirect 301 /dominical-land.html /Dominical/land.html
redirect 301 /dominical-luxury-real-estate.html /Dominical/luxury.html
redirect 301 /dominical-real-estate.html /Dominical/real-estate.html
redirect 301 /dominical-vacation-homes.html /Dominical/rentals.html
redirect 301 /dominical-villas.html /Dominical/villas.html
redirect 301 /costa-rica-properties.html /properties.html
redirect 301 /beach-properties.html /beach-real-estate.html
redirect 301 /costa-rica-beachfront-properties-for-sale.html /beachfront-real-estate.html
redirect 301 /costa-rica-beach-property-for-sale.html /beach-real-estate.html
redirect 301 /costa-rica-beach-houses.html /beach-real-estate.html
redirect 301 /costa-rica-beach-front-real-estate.html /beachfront-real-estate.html
redirect 301 /costa-rica-real-estate.html /
redirect 301 /costa-rica-real-estate-for-sale.html /
redirect 301 /costa-rica-condos.html /condos.html
redirect 301 /dominical-single-family-homes.html /Dominical/homes.html
redirect 301 /dominical-condo-villa.html /Dominical/condos.html
redirect 301 /print/property/31cbw12oyyy/ /Dominical/condos.html
redirect 301 /dominical-resorts.html /Dominical/hotels.html
redirect 301 /dominical-villas-for-rent.html /Dominical/villas.html
redirect 301 /dominical-villas-for-sale.html /Dominical/villas.html
redirect 301 /dominical-vacation-rentals.html /Dominical/rentals.html
redirect 301 /dominical-fractional.html /Dominical/real-estate.html
redirect 301 /Properties/rental-property.html /Rentals/properties.html
redirect 301 /condos.html /condos-for-sale.html
redirect 301 /condos-villas.html /condos-for-sale.html
redirect 301 /costa-rica-luxury-hotels-for-sale.html /hotels-for-sale.html
redirect 301 /Costa-Rica/costa-rica-hotels-for-sale.html /hotels-for-sale.html
redirect 301 /large-farms-in-costa-rica.html /farms-for-sale.html
redirect 301 /large-farms.html /farms-for-sale.html
redirect 301 /costa-rica-homes-for-sale.html /homes-for-sale.html
redirect 301 /costa-rica-homes.html /homes-for-sale.html
redirect 301 /costa-rica-land-for-sale.html /land-for-sale.html
redirect 301 /costa-rica-lands.html /land-for-sale.html
redirect 301 /Costa-Rica/costa-rica-lands.html /land-for-sale.html
redirect 301 /land-for-sale-in-costa-rica.html /land-for-sale.html
redirect 301 /gated-communities.html /retirement-communities.html
redirect 301 /golf-properties.html /golf-communities.html
redirect 301 /luxury-properties.html /Luxury/real-estate.html
redirect 301 /costa-rica-luxury-properties.html /Luxury/real-estate.html
redirect 301 /costa-rica-luxury-real-estate.html /Luxury/real-estate.html
redirect 301 /costa-rica-luxury-estates.html /Luxury/real-estate.html
redirect 301 /hotels-for-sale.html /Luxury/hotels.html
redirect 301 /costa-rica-luxury-homes-for-sale.html /homes-for-sale.html
redirect 301 /costa-rica-luxury-homes.html /homes-for-sale.html
redirect 301 /Costa-Rica/costa-rica-luxury-homes.html /homes-for-sale.html
redirect 301 /luxury-homes-in-costa-rica.html /homes-for-sale.html
redirect 301 /costa-rica-luxury-home-rentals.html /Rentals/house.html
redirect 301 /costa-rica-luxury-villa-rental.html /Rentals/villas.html
redirect 301 /tamarindo-houses.html /Tamarindo/homes.html
redirect 301 /tamarindo-single-family-homes.html /Tamarindo/homes.html
redirect 301 /tamarindo-homes-for-sale.html /Tamarindo/homes.html
redirect 301 /tamarindo-real-estate-for-sale.html /Tamarindo/real-estate.html
redirect 301 /tamarindo-real-estate.html /Tamarindo/real-estate.html
redirect 301 /tamarindo-properties.html /Tamarindo/real-estate.html
redirect 301 /tamarindo-hotels-for-sale.html /Tamarindo/hotels.html
redirect 301 /tamarindo-land.html /Tamarindo/land.html
redirect 301 /tamarindo-condo-villa.html /Tamarindo/condos.html
redirect 301 /houses-for-sale-in-santa-ana.html /Santa-Ana/homes.html
redirect 301 /santa-ana-apartments-for-rent.html /Santa-Ana/rentals.html
redirect 301 /santa-ana-apartments.html /Santa-Ana/rentals.html
redirect 301 /santa-ana-condo-villa.html /Santa-Ana/condos.html
redirect 301 /santa-ana-condos-for-rent.html /Santa-Ana/condos.html
redirect 301 /santa-ana-fractional.html /Santa-Ana/real-estate.html
redirect 301 /santa-ana-homes-for-rent.html /Santa-Ana/rentals.html
redirect 301 /santa-ana-houses.html /Santa-Ana/homes.html
redirect 301 /santa-ana-land.html /Santa-Ana/land.html
redirect 301 /santa-ana-properties-for-sale.html /Santa-Ana/real-estate.html
redirect 301 /santa-ana-properties.html /Santa-Ana/real-estate.html
redirect 301 /santa-ana-real-estate.html /Santa-Ana/real-estate.html
redirect 301 /santa-ana-single-family-homes.html /Santa-Ana/homes.html
redirect 301 /santa-ana-villas-for-rent.html /Santa-Ana/villas.html
redirect 301 /santa-ana-villas.html /Santa-Ana/villas.html
redirect 301 /Table/Santa-Ana/ /Santa-Ana/real-estate.html
redirect 301 /manuel-antonio-condo-villa.html /Manuel-Antonio/villas.html
redirect 301 /manuel-antonio-condos-for-sale.html /Manuel-Antonio/condos.html
redirect 301 /manuel-antonio-condos.html /Manuel-Antonio/condos.html
redirect 301 /manuel-antonio-hotel-leisure.html /Manuel-Antonio/hotels.html
redirect 301 /manuel-antonio-hotels.html /Manuel-Antonio/hotels.html
redirect 301 /manuel-antonio-land.html /Manuel-Antonio/land.html
redirect 301 /manuel-antonio-properties-for-sale.html /Manuel-Antonio/real-estate.html
redirect 301 /manuel-antonio-resorts /Manuel-Antonio/real-estate.html
redirect 301 /manuel-antonio-properties.html /Manuel-Antonio/real-estate.html
redirect 301 /manuel-antonio-real-estate-for-sale.html /Manuel-Antonio/real-estate.html
redirect 301 /manuel-antonio-real-estate.html /Manuel-Antonio/real-estate.html
redirect 301 /manuel-antonio-resorts.html /Manuel-Antonio/hotels.html
redirect 301 /manuel-antonio-single-family-homes.html /Manuel-Antonio/homes.html
redirect 301 /manuel-antonio-villas-for-rent.html /Manuel-Antonio/villas.html
redirect 301 /manuel-antonio-villas.html /Manuel-Antonio/villas.html
redirect 301 /nosara-properties.html /Nosara/real-estate.html
redirect 301 /Nosara/nosara-real-estate.html /Nosara/real-estate.html
redirect 301 /home /
redirect 301 /jaco-beach-properties-for-rent.html /Jaco/rentals.html
redirect 301 /jaco-beach-properties-for-sale.html /Jaco/real-estate.html
redirect 301 /jaco-beach-properties.html /Jaco/real-estate.html
redirect 301 /jaco-condo-villa.html /Jaco/condos.html
redirect 301 /jaco-condos-for-sale.html /Jaco/condos.html
redirect 301 /jaco-hotel-leisure.html /Jaco/hotels.html
redirect 301 /jaco-land.html /Jaco/land.html
redirect 301 /jaco-properties-for-rent.html /Jaco/rentals.html
redirect 301 /jaco-properties-for-sale.html /Jaco/real-estate.html
redirect 301 /jaco-properties.html /Jaco/real-estate.html
redirect 301 /jaco-real-estate-for-sale.html /Jaco/real-estate.html
redirect 301 /jaco-real-estate.html /Jaco/real-estate.html
redirect 301 /jaco-resorts.html /Jaco/hotels.html
redirect 301 /jaco-single-family-homes.html /Jaco/homes.html
redirect 301 /jaco-vacation-rentals.html /Jaco/rentals.html
redirect 301 /jaco-vacations.html /Jaco/rentals.html
redirect 301 /jaco-villas.html /Jaco/villas.html
redirect 301 /Jaco/jaco-real-estate.html /Jaco/real-estate.html
redirect 301 /quepos-condo-villa.html /Quepos/condos.html
redirect 301 /quepos-hotels.html /Quepos/hotels.html
redirect 301 /quepos-land.html /Quepos/land.html
redirect 301 /quepos-properties.html /Quepos/real-estate.html
redirect 301 /quepos-real-estate.html /Quepos/real-estate.html
redirect 301 /quepos-single-family-homes.html /Quepos/homes.html
redirect 301 /quepos-vacation-rentals.html /Quepos/rentals.html
redirect 301 /quepos-villas.html /Quepos/villas.html
redirect 301 /samara-beach-real-estate.html /Samara/real-estate.html
redirect 301 /Samara-Real-Estate.html /Samara/real-estate.html
redirect 301 /samara-condo-villa.html /Samara/condos.html
redirect 301 /samara-properties.html /Samara/real-estate.html
redirect 301 /samara-land.html /Samara/land.html
redirect 301 /samara-single-family-homes.html /Samara/homes.html
redirect 301 /samara-villas.html /Samara/villas.html
redirect 301 /escazu-condo-rentals.html /Escazu/condos.html
redirect 301 /escazu-homes-for-sale.html /Escazu/homes.html
redirect 301 /escazu-land.html /Escazu/land.html
redirect 301 /escazu-properties-for-rent.html /Escazu/real-estate.html
redirect 301 /escazu-properties-for-sale.html /Escazu/real-estate.html
redirect 301 /escazu-properties.html /Escazu/real-estate.html
redirect 301 /escazu-real-estate-for-rent.html /Escazu/rentals.html
redirect 301 /escazu-real-estate-for-sale.html /Escazu/real-estate.html
redirect 301 /escazu-real-estate.html /Escazu/real-estate.html
redirect 301 /escazu-single-family-homes.html /Escazu/homes.html
redirect 301 /Escazu/escazu-properties.html /Escazu/real-estate.html
redirect 301 /Escazu/escazu-real-estate.html /Escazu/real-estate.html
redirect 301 /Escazu-Real-Estate.html /Escazu/real-estate.html
redirect 301 /Escazu/escazu-properties-for-rent.html /Escazu/real-estate.html
redirect 301 /san-jose-condo-villa.html /San-Jose/condos.html
redirect 301 /san-jose-condos-for-sale.html /San-Jose/condos.html
redirect 301 /san-jose-hotel-leisure.html /San-Jose/hotels.html
redirect 301 /san-jose-houses-for-sale.html /San-Jose/homes.html
redirect 301 /san-jose-land.html /San-Jose/land.html
redirect 301 /san-jose-real-estate.html /San-Jose/real-estate.html
redirect 301 /san-jose-single-family-homes.html /San-Jose/homes.html
redirect 301 /San-Jose/san-jose-real-estate.html /San-Jose/real-estate.html
redirect 301 /San-Jose/san-jose-condos-for-sale.html /San-Jose/real-estate.html
redirect 301 /San-Jose/san-jose-houses-for-sale.html /San-Jose/real-estate.html
redirect 301 /San-Jose/san-jose-real-estate.html /San-Jose/real-estate.html
redirect 301 /flamingo-beach-resorts.html /Flamingo/hotels.html
redirect 301 /flamingo-condo-villa.html /Flamingo/condos.html
redirect 301 /flamingo-land.html /Flamingo/land.html
redirect 301 /flamingo-real-estate-for-sale.html /Flamingo/real-estate.html
redirect 301 /flamingo-real-estate.html /Flamingo/real-estate.html
redirect 301 /flamingo-resorts.html /Flamingo/hotels.html
redirect 301 /flamingo-single-family-homes.html /Flamingo/homes.html
redirect 301 /flamingo-vacation-rentals.html /Flamingo/rentals.html
redirect 301 /flamingo-villas.html /Flamingo/villas.html
redirect 301 /Flamingo/flamingo-real-estate.html /Flamingo/real-estate.html
redirect 301 /Flamingo/flamingo-vacation-rentals.html /Flamingo/rentals.html
redirect 301 /Flamingo/flamingo-villas.html /Flamingo/villas.html
redirect 301 /coldwell-banker-costa-rica-properties-for-rent.html /Rentals/house.html
redirect 301 /costa-rica-vacation-rentals.html /Rentals/house.html
redirect 301 /costa-rica-villa-rentals.html /Rentals/house.html

## End - Joomla! core SEF Section.

header("Location: $location", true, $status);

not working in my code...from here i m not able to redirect this particular location.

so what should i use insted of header() function.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.