Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Stop rewrite to default WAMP page
Old 02-13-2009, 06:15 AM Exclamation Stop rewrite to default WAMP page
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Hi guys

Once again im seeking your expert advice!

I have installed WAMP - all fine no probs at all. Ive then installed Zend which to an extent works grand (an identical setup is operating on a live server and works correctly as it should) except that when i follow a link (eg "http://localhost/mySite/myServices" instead of rewriting it to go to the controller and display the view etc it rewrites to WAMP's default index.php with server info, project info etc.

How do i stop this default rewrite and let the Zend rewrites take control?

Im pretty new to this more complex configs so any suggestions are welcome!

Cheers
Stoot
stoot98 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-13-2009, 09:12 AM Re: Stop rewrite to default WAMP page
Defies a Status

Posts: 1,605
Trades: 0
I don't know anything about Zend but when I have a problem on localhost with a link going to the wrong place it is because I wrote the link wrong.

In this case your rewrite rule is taking you to localhost/index.php (../index.php)

and you want it to go to mysite/dir/index.php (./dir/).

This might be resolvable with a basedir call.

Tripy or Chris will be along in a bit and correct me or add to what I posted.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 02-18-2009, 06:31 AM Re: Stop rewrite to default WAMP page
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Thanks for the reply.

Out of interest for anyone stumbling upon this i botched a solution which works:

1. Left Click on WAMP -> Apache -> Alias Directories -> Add an alias.

2. Enter a name - I called it "mySite"

3. Set the directory (In my case it's c:\wamp\www\mySite\public) - Make sure the directory is the public one.

4. Left Click on WAMP -> Apache -> Alias Directories -> http://localhost/mySite -> Edit alias.

5. Delete "/mySite/" from the first line and leave a "/"

Save it and restart Wamp.

Navigate to http://localhost and the page should display.

All the other websites in the directory will stop working so you need to re-edit the alias to reverse step 5.
stoot98 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Stop rewrite to default WAMP page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11906 seconds with 12 queries