The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
February 09, 2012, 07:04:58 AM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,602 Posts in 623 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iRealty Discussions
| | |-+  redirect mallfunction
« previous next »
Pages: [1] Print
Author Topic: redirect mallfunction  (Read 1503 times)
liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« on: March 04, 2010, 05:57:05 PM »

hi there!

i'd setup the demo of wfw irealty for the purpose to show it to a prospective client to the following url:

http://demosite.com/folder/folder

the licence was issued for the same domain:

http://demosite.com/folder/folder

i'd installed/accessed the installation script from the same url:

http://demosite.com/folder/folder

all the links in the site works perfect except if a user clicks in the "login" button on the registration page or clicks on the "logout" link on the user menu it send them to:

http://www.demosite.com/folder/folder INSTEAD OF http://demosite.com/folder/folder thus rendering the site innaccessible

could someone please point me in the right direction to correct that

i cannot go ahead with the demo behaving like that - it would give a bad impression and rise unnecessary questions from the viewer/client

your help would be greately appreciated

thank you! - liviu olaeru
« Last Edit: March 04, 2010, 06:02:37 PM by liviuolaeru » Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #1 on: March 04, 2010, 06:07:21 PM »

Hello,

Can you show the content of .htaccess file?
Logged

liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #2 on: March 04, 2010, 06:09:46 PM »

of course Smiley - there is;

=======================

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ./index.php

=======================
Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #3 on: March 04, 2010, 06:11:47 PM »

Please try to change the last line to the below one:

RewriteRule ^.*$ ./index.php
Logged

liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #4 on: March 04, 2010, 06:20:53 PM »

done so - no luck  Sad

i don't know if the following will help however there is anyway: after clicking on either links the redirect goes to: http://www.demosite/folder/folder/ ... however if I manualy delete the "www." part in the address bar it works !? - so the redirect works fine except is getting the destination URL wrong. - thought may be of help !? 
Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #5 on: March 04, 2010, 06:44:12 PM »

Try to set a redirect as it is explained here:
http://forum.iautosoftware.com/index.php/topic,11.0.html

If this did not help, please email to support@irealtysoft.com and provide your FTP access details as well.
Logged

liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #6 on: March 04, 2010, 07:36:12 PM »

the topic that you point at refers to something I'd specifically explain I did not: as opposed to what the post refers to my licence was issued for the right domain, I'd accessed the install script from the same one, my site is accessible (most of it) from the same domain - so the problem is somewhere else!? - ftp to my company server is out of the question, although i can attach whatever files you may need/request for your attention.

now although I know that I'm using the trial version and therefore support is or it might not be a guarantee, a faulty product even at a demo stage would definetely not get you a sale - there's a simple truth: nobody in its right mind buy a faulty product from the shelf, pay full price and than pay extra to have it fixed ...

ps: the redirect in my case is the other way around from www to non www !? - something not covered in that post however if I do this:

======================================

redirect www.domain.com to domain.com

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

======================================
it does NOT work either ..... I get: ""Error occurred: 404 - not found" ............... !?
« Last Edit: March 04, 2010, 07:44:46 PM by liviuolaeru » Logged
liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #7 on: March 04, 2010, 07:55:19 PM »

a bit of clarification to the post above:

demo is accessible both fe/be from the following url(s): http;//demosite.com/folder/folder/ and http;//demosite.com/folder/folder/admin/

adding index.php at the end of it like http://demosite.com/folder/folder/index.php give an 404 Error

my present ht access file looks like that:

====================================

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^http;//demosite.com$ [NC]
RewriteRule ^(.*)$ http;//demosite.com/$1 [L,R=301]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ ./index.php

====================================

having it like that results in error 404 when trying to acess any file

hope that might help!? - thanks again for the support and time given
« Last Edit: March 04, 2010, 08:06:37 PM by liviuolaeru » Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #8 on: March 04, 2010, 08:21:06 PM »

Please try the following code:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.demosite.com/folder/folder [nc]
RewriteRule ^(.*)$ http://demosite.com/folder/folder%{REQUEST_URI} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ ./index.php
Logged

liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #9 on: March 04, 2010, 08:38:59 PM »

nope - now I can access the site back but the login/logout redirect behaves the same - is it there any files that you might want me to attcach for your attention !? - as I stated before I cannot (unfortunately) provide ftp details of our servers - or should I go ahead and try to regenerate another licence!?
Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #10 on: March 04, 2010, 08:46:56 PM »

Oh. What about the following one?

RewriteEngine On
RewriteBase /folder/folder/

RewriteCond %{HTTP_HOST} ^www.demosite.com [nc]
RewriteRule ^(.*)$ http://demosite.com%{REQUEST_URI} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ ./index.php

> is it there any files that you might want me to attcach for your attention !?
I strongly believe everything is fine with other configuration files and the license - otherwise the site could not work at all.

Is it a fresh installation?
« Last Edit: March 04, 2010, 09:04:52 PM by Lena Kosyakova » Logged

liviuolaeru
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #11 on: March 04, 2010, 09:30:14 PM »

finally  Huh this variant works like a charm  Wink - again ... thank you! and have a nice weekend - i would be back soon ... hopefully only to get in touch with your sales dept

best regards - liviu olaeru
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!