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
Mod rewrite append the pattern to all url
Old 02-07-2009, 07:25 AM Mod rewrite append the pattern to all url
Novice Talker

Posts: 5
Name: Khaldi D.
Trades: 0
Hi,
this issue i had is similar to the mentioned in "frustrating issue" .
When i add a very simple rewriterule like this
^article/([0-9]+)$ viewtopic.php?t=$1
it append "article/" after domain name in all the links in the page so on image are loaded and others related problems.
It happen even if i use rewritebase /
Any ideas?
khofech is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2009, 01:15 AM Re: Mod rewrite append the pattern to all url
Novice Talker

Posts: 5
Name: Khaldi D.
Trades: 0
Yo ppl!
270 viewed time and no answer ? Looool
I thought it was really an easy issue.
Ok i explain more maybe it's not clera enough.

When applying the above rule all links in the page will have target like this.
www.mydomain.com/article/viewtopic.php?t=..... and so on , the image too have the src appended with "article/" so no img is loaded.
When removing article/
from the rule all become ok.
Any ideas.?
khofech is offline
Reply With Quote
View Public Profile
 
Old 02-08-2009, 08:08 AM Re: Mod rewrite append the pattern to all url
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Should we guess how you have written the rest of the rewrite rule.

part of the code is of absolutely no use at all.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-08-2009, 11:37 AM Re: Mod rewrite append the pattern to all url
Novice Talker

Posts: 5
Name: Khaldi D.
Trades: 0
shall i guess which part of the rule is off?
The whole line as mentioned above.
RewriteRule ^article/([0-9].*)$ viewtopic.php?t=$1
khofech is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Mod rewrite append the pattern to all url
 

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.46325 seconds with 12 queries