On 6 Feb 2013, at 20:51, Karl Smith <barnunboi@hotmail.com> wrote:
Currently you can access my website with something like this www.xxxx.com/xxxx/source/....now my question is how would I alter my .htaccess file so I can access my site like this www.xxxx.com/xxxx? I have looked around on the web but I don't have a clear understanding of mod_rewrite.Any input would be greatly appreciated! Thanks!
My .htaccess file is as follows
<IfModule mod_rewrite.c>
RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L]
You should look at using the router to do this rather than modifying the .htaccess
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment