CLEAN URL's

aaddaamm / 2010-05-16 21:26:59   

I am going mad trying to find out how to get clean urls, I have searched Google and I just don't understand a word anyone is saying, I have tried loads of things, and even your Tutorials, I can no find the ....define('MODREWRITE', false); thing, I can't seem to find it, and I can not change htaccess to (dot) because I am using a mac, ? also some web site have told me I need to down load stuff, but its all for Linux , Windows... I am really dumb to this whole web building word, So any help would be nice, and simple would be nice. Hope you can help. Thank you , http;//www.aaddaamm.co.uk

arsondpi / 2010-05-16 23:11:20   

Using a mac doesn't mean anything- most people here use macs...
You mean you read this and still you can't do it?
Try the two red links as a starting point.
You just need a code editor to begin with.
If it's still to much then I suggest to ask a friend to help you out...

aaddaamm / 2010-05-17 16:01:33   

Thanks I managed to find where i had to change MODREWRITE to true, but when I did my website had clean URLs but, a page came up saying sorry page not found. I have changed it back to false now, and the website is working again, but with messy urls. In the tutorial it says to change htaccess to .htaccess but I don't know how to do this, because on the mac you can not put a dot in a file name. Maybe I need to change this to for it to work?

What do you mean by start with the two red links?
I am asking for help on here, because I do not know anyone that knows how to builds websites.

Thank you.

aaddaamm / 2010-05-18 21:27:06   

?

Vaska A / 2010-05-18 21:29:23   

¬ø

beam / 2010-05-18 21:41:47   

what ftp aplication are you using on your mac?

you should be able to every thing here on your ftp. if your sever allows. http://www.indexhibit.org/tutorial/how-to-get-clean-urls/

btw, nice google seo page.

Vaska A / 2010-05-18 22:40:25   

Woops...I posted that as a joke and then got totally sidetracked... ;)

Not all hosts have modrewrite. Ask your host, or look in the FAQ and see if it's possible first.

aaddaamm / 2010-05-19 12:11:56   

I have Dreamweaver and Cyberduck installed on my lap top,
I have looked in the FAQs and it keeps going on about Drupal. I keep trying things, but on my page it says page not found when I make the changes, so I keep doing things wrong. What modrewrite should I get?

I am trying, sorry if its obvious what I need to do, but I don't have a clue, and all the stuff I try just goes wrong.

Thank you

orionrush / 2010-05-19 15:45:29   

a dot (.) prior to a file name tells the finder that this file is 'hidden' or a system file and keeps them from appearing in on your file broswer. So literarily if you rename the htaccess icon to put a period in front of it, OS X will give you a warning that it will treat it as an invisible file.

But you DONT want to do this on your computer but instead to a copy of htaccess that's on your server.

With cyberduck navigate to the htaccess file location - this should be the base or root directory (folder) of you indexhibit install. drag and drop the htaccess file there.
Right( or ctrl ) click on the file once it's uploaded and select "Rename"
Change the name to include the leading dot: .htaccess
the file should then vanish from the cyberduck browser.

In cyberduck go to: View/Show Hidden files.
Your .htaccess should then reappear.

You can now delete or rename the file again, if for example your server doesn't support modrewrite) as Vaska suggested.

Best of luck

aaddaamm / 2010-05-19 17:16:19   

WOW I tried your steps and with failure I tried Google again to see if it was possible with my server, I then found a new link to the indexhibit forum and found out because I am on 1&1 its tricky,
http://www.indexhibit.org/forum/thread/4399

I now have it all working and thank you orionrush for you help also.

I think you should add the code to the tutorial just in case people are with 1&1

Thanks all.

-------------

philippe
UNITED KINGDOM
2009-07-02 14:34:21
Permalink Post

Hi there,

here is the solution that works for me, on 1and1.

I had the same issues as everyone when following the tutorial: http://www.indexhibit.org/tutorial/how-to-get-clean-urls/
with 500 errors.

what I did was adding one extra line (the one in bold) in my .htaccess file so that it looks like:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteBase /
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) index.php

Hope that helps people. I was struggling too.

verena / 2010-07-08 00:44:34   

Hi there,
I maybe have a similar problem as aadaam: I followed the clean url tutorial and renamed the htaccess file and changed the default.php. Then on the site the links wouldn't work anymore. I talked to the host and they say, that I have to upgrade my 'server package' in order to activate mod_rewrite and have the htaccess function. I'm quite annoyed. Is there another way to get clean urls???
If someone knows, I'd be glad for some helpful advices.
Thanks,
V.

arsondpi / 2010-07-08 06:49:54   

...no not really. mod_rewrite and htaccess are necessary for clean urls.

figlen / 2010-08-05 11:25:37   

Hi there, just to follow on from this discussion, I'm trying to get clean urls for my site, but when I changed the modrewrite to true and changed htaccess to .htaccess my URL were lovely and clean, however my logo image disappeared! Dont know why. Changed everything back, logo returned!

any reason for that?

jere / 2010-08-06 17:50:01   

@figlen:
had the same problem with the disappearing logo.

my solution:

- copy your logo file in the root folder (via ftp)
- change the logopath (in the Pre-Nav Text) to the new url (maybe like this: )

@philippe: thanks for the 1and1 rework!

lpng / 2010-08-07 10:45:13   

I'm actually struggling with that too…
I'm trying to get it working and got confirmation my host does support mod_rewrite.
However, anytime I activate MODREWRITE in the defaults.php, it f**** the whole thing up.
Plus, whatever I put into my .htaccess file doesn't make a difference at all, even if it's empty… So did I get tricked with an actually not active mod_rewrite?

looksee / 2010-08-09 21:13:25   

aaddaamm you are a god (or a goddess... not sure which). thanks for the research and help. that worked perfectly.

naorem / 2011-03-06 04:16:43   


I did manage to get clean URLs on my site by following the steps provided in one of the previous posts. But the logo of my site which use appear all through the site has disappeared expect for the landing page.

www.mayekprojects.com

Vaska please can you help!!!

thanks

naorem

zuzamisko / 2011-03-28 15:51:18   

@aaddaamm

The extra line in .htaccess works perfectly, thank you!

joanadd / 2011-04-02 17:05:29   

^^worked for me too! thanks aaddaamm

and I'm not using 1&1

so give it a try, maybe it works on your host too

mradamtoo / 2013-12-09 18:53:00   

Oh my, the ongoing clean URL problem.

I can't get them to work on my site: adambneese.com and I'm using Godaddy. There isn't an option.php file in my ndxz-studio/config folder.

I tried creating a new one with the proper code and nothing happened- any suggestions?

arsondpi / 2013-12-10 08:02:22   

options.php is for Version 2.
You should be looking at the defaults.php file located in the ndxz-studio folder.

This thread has been closed, thank you.