Recent activity
Subscribe to this feed
Brian replied on October 23, 2009 04:03 to the question "mod_rewrite & .htaccess - can't get it to work!" in ClickOnTyler:
Well, i have the VirtualHostX method working. I tried to move everything to an .htaccess file and that didn't work for some reason?? Would love some suggestions if you have them. Here's what I did that *is* working...
The parent directory for my projects has the following set up in my [username].conf file
<Directory "/Users/[username]/Dropbox/Sites">
Options FollowSymLinks Indexes MultiViews
AllowOverride All AuthConfig
Order allow,deny
Allow from all
</Directory>
Then i have the following entered in the Directives field in VirtualHostX
RewriteOptions Inherit
RewriteEngine on
RewriteRule ^/([a-z]+)\.html$ /index.php?p=$1
RewriteRule ^/([a-z]+)[/]?$ /index.php?p=$1
So, now /xyz.html, /xyz, and /xyz/ all rewrite to /index.php?p=xyz
However, If i move the very same rules to an .htaccess file, it breaks???
Brian asked a question in ClickOnTyler on October 22, 2009 21:35:
mod_rewrite & .htaccess - can't get it to work!I'm trying to do something very simple. I want the following url...
http://myvirtualhost/var/
...to rewrite to...
http://myvirtualhost/index.php?p=var
I've tried adding the following to my VirtualHostX Directives but it doesn't seem to work...
Options FollowSymLinks
RewriteEngine on
RewriteRule ^/([a-z]+)$ index.php?p=$1 [L]
I've been googling and searching forums for the past two days. Nothing i try seems to work. Any suggestions??
Brian replied on October 22, 2009 19:59 to the question "Storing <Virtualhost/> files on shared space (iDisk/DropBox)" in ClickOnTyler:
ok, i got it working. feeling a bit stupid. i was trying to use a symbolic link to redirect to a folder in my DropBox. Instead simply use VirtualHostX and literally choose the folder in your DropBox. Then make sure to set directory permissions in your .conf file in /etc/apache2/users/[your.username].conf
<Directory "/Users/[your.username]/Dropbox/">
Options FollowSymLinks Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Brian asked a question in ClickOnTyler on October 22, 2009 17:26:
Storing <Virtualhost/> files on shared space (iDisk/DropBox)I switch back and forth between a couple computers over the course of a day. I'd love to be able to store my development files in a shared location so I don't have to worry about syncing. I've attempted to place folders in both my local iDisk and DropBox folders using symbolic links but I'm not having any luck. I'm getting permissions errors that i can't seem to work around. I realize this isn't a VirtualHostX problem, but was hoping that it might be something others would find useful if a solution could be found...
Loading Profile...
