Thank your for the help.
I will give that a shot.
]]>You’ll want it in your root directory in the example I gave you. And yes, I have seen some delays with GoDaddy before which is really frustrating. Not sure how long the delay is though (maybe 15 minutes or an hour?), it’s been a few years since I did any real mod_rewrite work with GoDaddy and I don’t remember the specifics of the delay.
The code you posted should work if you move it into the region directory. Otherwise, what you posted would work to rewrite this http://www.youthlaxco.com/team to this http://www.youthlaxco.com/index.php?pg=team which could be what you want.
]]>so it would be w/o region
Options -MultiViews
RewriteEngine On
RewriteRule ^/([^/\.]+)/?$ /index.php?pg=$1 [L]
I new to this.
For the .htaccess file—–will it need to be placed in the main root directory or the /region/ directory… so i can get a better understanding how it works.
Is there a delay with godaddy?
]]>Do you have any rules set up in your .htaccess file to perform the rewrite you’re looking for? This blog post is about enabling mod_rewrite in GoDaddy’s hosting environment since it seems they sometimes have multiviews enabled which interferes with mod_rewrite. Writing the rules themselves is a completely separate task.
That being said, you’ll need to add some code similar to the following in your .htaccess file. This is just scratching the surface with what mod_rewrite can do and you may end up needing something more complex:
Options -MultiViews
RewriteEngine On
RewriteRule ^region/([^/\.]+)/?$ region/index.php?pg=$1 [L]
i have the url
http://www.youthlaxco.com/region/index.php?pg=team
i want to change it to
http://www.youthlaxco.com/region/team