Jump to content

.htaccess help


Jnerocorp

Recommended Posts

Well i have this in my .htaccess,

 

Options +FollowSymlinks

RewriteEngine on

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

 

it works but i get a blank page because of some problem i dont know how to fix it if i take out the .htaccess and i write index.php?view=artist&option=com_profile&name=username it works.

 

 

basicly what i want to do is that the actual route to a file now is,

http://www.soundzet.com/artist/index.php?user=freakadilly

 

i want it to be just

http://www.soundzet.com/freakadilly

 

please and thank you for the help

 

-John

Link to comment
Share on other sites

okay I have my urls like http://yoursite.com/contact instead of http://yoursite.com/?uri=contact or http://yoursite.com/index.php?uri=contact

 

this is my mod_rewrite

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2/$3
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /index.php?uri=$1/$2
RewriteRule ^([a-zA-Z0-9]+)$ /index.php?uri=$1

 

because I rewrite from "folders" (the site is DB driven hence "folders")

 

But I am unsure if you can remove "/artist/" completely you may have to settle for "/artist/freakadilly"

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.