By ilana on
I'm having problems using Clean URL's.
I'm using Mac 10.4 and Installed Drupal with Mamp.
I copies the .htaccess file from the exctracted folder to the Drupal folder which is installed, and I can see it there.
My Drupal is located in /Library/Webservers/Documents
in the broswer in can see it under http://mycomuter'sname.local/drupal
I tried to change the httpd.conf file, like it is instructed here: http://www.clagnut.com/blog/350/
I am restarting Mamp and "personal web sharing" in my system preferencecs,
but still, each time I press the "Run clean URL test" I am getting the "Not Found" page.
where did I go wrong?
Comments
Hmm
Anything in the /Library/Webservers/Documents folder is not accessible from MAMP - you've installed Drupal on OSX's built-in web server.
MAMP must be located in your applications folder (not a subfolder) and all the web files should be located in the MAMP/htdocs folder (I make a Drupal subfolder within that to keep it clean since I work on multiple sites).
To view your pages, open MAMP and you should see a Welcome to MAMP screen (if not click "open start page") The url of the start page is http://localhost:8888/MAMP/?language=English. To view your site, go to http://localhost:8888/drupal (or whatever you named your directory in the htdocs folder)
You don't need personal web sharing - it's entirely removed from MAMP.
You'll have to move your database over as well using phpmyadmin in MAMP (unless you haven't done much yet - then just go for a new install)
Also, make sure you're running the latest version of the program - the version prior to the current one had trouble with clean urls.
Hope that clears things up.
I fixed this by...
I have downloaded MAMP 1.7.2 on my Mac (OS 10.5). This version of MAMP comes with mod_rewrite enabled but when I went to run the Clean URLs test in Drupal (verison 5) it gave and error that the "page could not be found."
I did the following to fix the issue:
1) Create a blank file called .htaccess in the MAMP web document root. Which by default in MAMP 1.7.2 is '/Applications/MAMP/htdocs'. You can use textedit, vi or emacs or whatever you like.
Within the .htaccess file I pasted this:
2) Save the file.
3) Restart the Apache server via the MAMP console.
From here run the Clean-URLs test page. Hopefully it gives you selectable radio button options to 'Enable' or 'Disable'. This means that it worked.
Note: I have my Drupal site configured where the Drupal core folders are in htdocs.
Hi jjweiner, I tried your
Hi jjweiner,
I tried your method, and it not working at mine... Weird..
Anyway, any of the places i might miss out?
Thanks alot!
It worked!
Thanks jjweiner.
i created .htaccess file and put it in the root folder of my drupal install.
and i restarted MAMP and it worked. i've been banging my head about this issue for a few days and it was as simple as copying pasting. thanks!
Worked for me
Thanks jjweiner. Worked right off the bat for me.
Worked for me, thanks!
Worked for me, thanks!
For anyone still stuck.
I had the problem with MAMP/Drupal and clean urls for a couple of days and using various snippets of info on these forums, worked out the problem:
I copy and paste my drupal folders to Sites/ sub directories and Finder hides the .htaccess folder. On another post you will see how to make a little automator script to unhide this file, copy it and make sure its in your drupal-based site directory. Then by following the instructions on the "offcial" node on here, you might get it working like me.
Good luck.
Also, make sure there are no
Also, make sure there are no .htaccess files above and outside of MAMP's webroot directory. Even files above the webroot (default /Applications/MAMP/htdocs) can sometimes interfere.
stevejamesson.com