URL Rewriting is causing an error

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

#css #debugging #error #htaccess #php

No replies · 276 views · started 15 years ago · 1 min read

s3nzo Developer · 156 posts #1

Hey guys i'm trying to make "Pretty URL" using .htaccess now my problem is images and css aren't loading when i access the new url and the pages load really slow here's an example original url my6love | admin's | profile is working fine and the new address is my6love | admin's | profile how can i fix this?

##########################

Thanks for reading i just figured the mistake i made now i fixed it i in .htaccess i had put

RewriteRule ^profile/([a-z0-9]+)/?$ user.php?nick=$1 [NC,L]

so people can visit mysite/profile/username now i changed the above code to

RewriteRule ^([a-z0-9]+)/?$ user.php?nick=$1 [NC,L]

so users can visit mysite/username and now it's working thanks for your time

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close