Help - Search - Member List - Calendar
Full Version: Help: mod_rewrite
WorkTheWeb Forums > Webmaster Resources > Webmaster - General Help
Support our Sponsors!
Hello,

I have inserted a line to .htaccess file in root as follows to redirect
request,
from:
http://www.mywebsite.com/users/UserName

to:
http://www.mywebsite.com/user-information/...userid=UserName

RewriteRule ^users/(.*)$ /user-information/index.php?UserName=$1 [L]


This shows correct text but fonts and styles are all crashed.

What is the correct rule to redirect into different directory?

Many thanks in advance.

David Dorward
[Email Removed] wrote:


QUOTE
I have inserted a line to .htaccess file in root as follows to redirect
request, from:
http://www.mywebsite.com/users/UserName

It seems to be broken. I get redirected to some hosting company's homepage.
Or was that not your real address? Please use example.com for examples,
that's what its there for.

QUOTE
This shows correct text but fonts and styles are all crashed.

Sounds like it working but you have the paths to your CSS files wrong.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

GreyWyvern
On Sat, 09 Jul 2005 05:25:24 -0400, David Dorward <[Email Removed]>
wrote:

QUOTE
Please use example.com for examples,
that's what its there for.

Man, everyone uses that domain name these days to point bogus links to. I
have it tagged at Pool.com and SnapNames. I'll get that domain yet, mark
my words!

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/webslavent?msg=149 - Presto the Puffin!


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.