Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

rewriting urls gives wrong path

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  anyone experience with setup mod_dav windows?  
Author Message
mgil

External


Since: Jan 11, 2004
Posts: 1



(Msg. 1) Posted: Mon Jan 12, 2004 2:44 am
Post subject: rewriting urls gives wrong path
Archived from groups: alt>apache>configuration (more info?)

Hi there!
I'm trying to gain some knowledge on rewriting urls but with
poor results...
I've got a webpage of this structure
/
css/
images/
main/
about.html
photos.html
links/
games.html
photos.html
i.php

Now I'd like to make some rewriting rules that do:
/ -> /i.php?p=main&s=about
/main/photos -> /i.php?p=main&s=photos
and so on.

The i.php script simply includes necessary pages. I'm also
using smarty for this.
The first part is that for every rewriting url guide I read
it says something like this ^/main$. But it doesn't even
match /main! When I check rewriting log I see that my apache
(v. 2.0.4Cool splits 'http://localhost/main' into 'main' and the rule
doesn't match. If I make the rule as ^main$ it loads the file ok
but it loses all structure; ie all requests for images go to
/main/images instead to /images.

My peace is lost and I just gave up after 2 days of reading. All hope
with you. Thanks.
--
Marcin Gil | RLU# 221865 :: email# mgil at vernet pl
"Dentharg" | G-G# 185057 :: JID# dentharg at chrome pl

 >> Stay informed about: rewriting urls gives wrong path 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ReWriting URLS - OK. This is what I have I have 2 domains www.mydomain.com and www.mydomain.net Both of them are pointing to the same base-directory using the same index file. What I want to do is make it so that every request for www.mydomain.com get rewrote as..

Issue with url rewriting - Hi, I trying to do something in using the mod_rewrite. So, my first test was to create a page "trouve.html" and put a .htaccess file with " Options +FollowSymlinks RewriteEngine on RewriteRule ^nexistepas.html$ trouve.html [L] " Wh...

problem w/ apache rewriting machine name - I'm having problems with Apache 1.3.9. (Yes, I know it's four years old, but so is the system it's on, and upgrading isn't an option right now, and the newer versions don't seem to compile.) I think problem occurs because the machine has two names,..

"Easy URLs" in Apache2 - I had Apache 1.3 installed on my server when running windows and urls like "http://blah.com/main/" would serve the file "http://blah.com/main.php". Since switching to SuSE and installing Apache2 this no longer works with the defaul...

Simple URLs in Apache2 not working - I've tried several different approaches that are supposed to work. I tried adding Option FollowSymLinks into the <Directory> config for the server's root directory. I tried adding a <Files> tag to force the type to php which doesn't want t...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]