LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-11-2006, 06:26 AM   #16
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269

Quote:
Originally Posted by j-ray
Maybe your server does not accept symlinks - as it should work the way trickykid said. You can set a FollowSymlinks
directive in the httpd.conf for the directory the application resides in or the default directory. (or am i wrong??) this way you are much better off than testing mod_rewrite...
Well like he mentioned, it does work with the index file as expected but this is normal behaviour he's seeing if someone didn't code the php site in a more manageable way. If clicking on any links from the index page results in the url changing back, that means the previous path is hard coded within the pages, instead of possibly the code using the url to navigate, etc. Crappy code, unless you do want to rewrite it, you most likely are better off with mod_rewrite. But why all the trouble just to change the name of the URL?
 
Old 10-11-2006, 09:48 AM   #17
Timur
LQ Newbie
 
Registered: Oct 2006
Location: Samarkand, Uzbekistan and Oklahoma, USA
Distribution: Debian Sarge
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by j-ray
Maybe your server does not accept symlinks - as it should work the way trickykid said. You can set a FollowSymlinks
directive in the httpd.conf for the directory the application resides in or the default directory. (or am i wrong??) this way you are much better off than testing mod_rewrite...
Can you give me more information how to do it? Also I think the server supports the symlinks. I did create one. When I was typing /newsite instead of /full_php_blablabla it worked. Everything was good in the browser, etc... BUT it was only on the first page. The rest of the website is hard coded. So when you click on smth - it has a link to old destanation - in /full_php_blablabla.
 
Old 10-11-2006, 09:58 AM   #18
Timur
LQ Newbie
 
Registered: Oct 2006
Location: Samarkand, Uzbekistan and Oklahoma, USA
Distribution: Debian Sarge
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by j-ray
Maybe your server does not accept symlinks - as it should work the way trickykid said. You can set a FollowSymlinks
directive in the httpd.conf for the directory the application resides in or the default directory. (or am i wrong??) this way you are much better off than testing mod_rewrite...
Sorry for the mistake. I just thought that it wouldn't be that much of a help...

Anyway this is what it writes when I uncomment the last 2 lines -

Syntax error on line 989 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration.

If I comment them again - no error messages
 
Old 10-11-2006, 10:26 AM   #19
Timur
LQ Newbie
 
Registered: Oct 2006
Location: Samarkand, Uzbekistan and Oklahoma, USA
Distribution: Debian Sarge
Posts: 29

Original Poster
Rep: Reputation: 15
Guys, don't laugh. At least not lound :-)

Everything was working. It was just that this stupid IE had it all cached. :-)))) That's why it was showing old URLs :-((( Spent 2 full days figuring out what was the problem. :-)
 
Old 10-12-2006, 12:06 PM   #20
Timur
LQ Newbie
 
Registered: Oct 2006
Location: Samarkand, Uzbekistan and Oklahoma, USA
Distribution: Debian Sarge
Posts: 29

Original Poster
Rep: Reputation: 15
I've solved the problem so far. But one thing still bothers me. My conf file. Is everything OK with it? Because I couldn't activate mod_rewrite module. From my previous experience I know. If something is not working when you don't need it - it will be very difficult to make it work when you do need it :-)
 
Old 10-13-2006, 01:07 AM   #21
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
In case u do need it u will find out simply because u have to and cant stop before - but i think this case is not very likely this time. It is much more likely that caching of browsers will confuse u quite often in the future because this is a continuous source of irritation working on web development...
learn to love it ;-)

Last edited by j-ray; 10-13-2006 at 01:08 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache url rewrite gallew Linux - Server 0 08-25-2006 03:54 AM
changing url opening default in kmail why2jjj Linux - Software 2 12-12-2005 08:50 AM
apache and url help cambie Linux - Software 1 08-11-2005 08:49 AM
Apache -- Changing requested URL to another name AnthonyM Linux - General 0 09-24-2004 07:34 PM
Apache Url simquest Linux - Software 2 11-26-2002 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration