How to remove /index.php?/projects/

anasuarezj / 2011-11-19 19:57:26   

Hello,

I've seen some indexhibit pages that do not have "/index.php?/projects/" in the path URL. I've been reading some forums about it, but I dont really understand how should I do it.

For instance, in my page (www.anasuarez.info) every time that I go to some of my sections, instead of having www.anasuarez.info/under-construction, in the browser address I have: "http://www.anasuarez.info/index.php?/projects/under-construction/".

Does anyone know and can help me to know how to do it? I'd like my roots without the .php..

I'm sorry if I'm not explaining this in the best way. I hope you can understand what I mean.

Thanks in advance.

Ana

LyngeP / 2011-11-19 23:08:31   

search the forum next time before starting a new post!

http://www.indexhibit.org/tutorial/how-to-get-clean-urls/

anasuarezj / 2011-11-20 06:57:59   

Hi LyngeP

I'm sorry, my bad. I tried to find that forum but dont know how I missed it. Thanks for redirecting me. I just followed the forrum's instructions and now I have clean urls in my page. Thanks a lot.

Villybond / 2012-03-28 02:12:28   

Hello! I tried to change the name of htaccess but sign appears that says

Server said:

.htaccess: Forbidden filename

Error -150: could not rename remote file

That is because my server don't have a server (Apache) technology called "mod_rewrite"?

Any idea of is there another way for remove index.php? ?

Thanks a lot!

Vaska A / 2012-03-28 02:13:38   

If you don't have mod_rewrite you can't remove index.php from the url.

Villybond / 2012-03-28 02:29:57   

Hi!
I don't know if I have it or not. I just trying to follow the steps of http://www.indexhibit.org/tutorial/how-to-get-clean-urls/

I didn't ask my server about de mod_rewrite yet

I just asking if the error -150 could be because I don't have the mod_rewrite...of is it for another thing...

Vaska A / 2012-03-28 02:39:27   

It would be better to ask your host about mod_rewrite before playing with it.

Villybond / 2012-03-28 02:48:30   

Ok! I will do it. Thanks....but you said...

"If you have any question whether you have this or not you should ask your webshot. Or, you might simply try to the following instructions to see if clean url's will work on your site".

;)

Villybond / 2012-03-28 10:21:29   

i did it! I couldn't change the name of htaccess with transmit or cyberduck.
I should did it from the control panel of my server hosting. Thanks!

Vaska A / 2012-03-28 11:41:02   

Great! Can you explain to future viewers what you did exactly? ;)

Villybond / 2012-03-28 14:18:14   

I send a e-mail to my hosting saying that I couldn't change the name of htaccess and they answered that I should do it from the control panel of them, from the control panel that I have from my hosting. I hope it helps futures indexhibers.

sbeckmann / 2012-04-12 09:50:41   

Hi I can't get a clean URL's, I've already made the changes on the files and this is the only thing I get

http://assistingproductions.com/indexhibitv070e/index.php?/ongoing/editorial2/

Not sure how to get rid of all the other things.

Thanks

pernin / 2012-04-12 10:50:21   

what changes have you made? I can't see any changes made

sbeckmann / 2012-04-12 10:55:34   

I changed the php file part of false to true and I rename the htaccess with a dot .htaccess

pernin / 2012-04-12 11:34:53   

I still can see assistingproductions.com/indexhibitv070e/htaccess there, so it's not renamed

sbeckmann / 2012-04-15 21:31:18   

what do you mean rename? how do I do that?

pernin / 2012-04-16 01:11:42   
I changed the php file part of false to true and I rename the htaccess with a dot .htaccess

Yes, that's what I'm wondering: it's in the instructions, you have to change modrewrite to true in defaults.php and you have to change rename htaccess to .htaccess

When I navigate to: assistingproductions.com/indexhibitv070e/htaccess I can read it, so it hasn't been renamed to .htaccess

You connect through ftp and change its name

sbeckmann / 2012-04-16 10:06:56   

Done, I did do it but as it didn't clean the url's I put it back as it was before.

I just did it again, so let me know if you can access it

pernin / 2012-04-16 13:22:52   

Everything seems to be correct now, and you have clean urls too. Congrats :)

sbeckmann / 2012-04-17 14:18:45   

is there anyway of getting rid of indexhibitv070e/ongoing on the url's?

pernin / 2012-04-17 14:56:12   

just move all files and folders that now are under indexhibitv070e one level up (above indexhibitv070e). that's your root.

Remeber to also move .htaccess (it may be invisible now that you renamed it)

And check that folders files and gimgs have 777 permissions, they sometimes get reset after a move

Vaska A / 2012-04-17 14:56:53   

Yes, take it out of the 'indexhibitv070e' folder.

pernin / 2012-04-17 15:09:34   

Oh, and you may need to publish Off/On (unpublish/republish) your pages, as they'll need to reset to the new path -- you already have a problem with internal links in your films section, now that you have clean urls

Vaska A / 2012-04-17 15:46:20   

No, you won't need to republish...

sbeckmann / 2012-04-27 14:32:28   

You mean take it out to the folder of indexhibitv070e and put it on public.html?

I actually have 2 .htaccess files, one on each folder, one is of 79 Bytes and the other one 147 Bytes, so which one should I keep.

pernin / 2012-04-27 14:42:24   

yes, that's correct. And htaccess is part of indexhibit, so it moves with it, rename the other one to something else, just in case it's being used for something we don't know of

sbeckmann / 2012-04-29 20:43:34   

I already changed the files from indexhibitv070e to assistingproductions folder which is inside public html but I'm get the same index.php on the url's, should I put it directly on public html or should I correct the code from the link?

sbeckmann / 2012-04-29 20:43:50   

I already changed the files from indexhibitv070e to assistingproductions folder which is inside public html but I'm get the same index.php on the url's, should I put it directly on public html or should I correct the code from the link?

pernin / 2012-04-30 07:31:53   

it's working for me, no index.php? You probably must clear your browser cache: shift-refresh a couple of times

sbeckmann / 2012-05-02 11:10:26   

ok, I don't get it I have the clean urls once I'm at a menu option http://assistingproductions.com/ongoing/editorial2/
but if I click on an image, right now I don't get the other page as I change the things from url's and apparently I suppose there is a file that is missing but the urls once you click on an image it appears with indexhibitv070e/index.php?/ongoing/complbeden/, why?

Is there also a way of getting rid of the ongoing?

Vaska A / 2012-05-02 11:14:35   

Probably because of the way you edited that script - the url is not being formed properly. Should, probably (because it's not my script so I don't know what's going on there), be:

  1. BASEURL . $arr['url']

Something like that.

sbeckmann / 2012-05-02 11:36:50   

the url was working properly until I moved everything

sbeckmann / 2012-05-02 11:52:02   

would it have something to do with htaccess file?

sbeckmann / 2012-05-02 13:01:36   

I need some help, everything was running smoothly, until I cleaned the urls, also if I change the name of a page that I create (so that an image can link to it) it seems that now it won't open, so do I have to create it again?

pernin / 2012-05-02 13:19:54   

sorry, we're all kind of taken up with the new version... :/

what exhibit are you using in your pages? visual index? (for example in assistingproductions.com/ongoing/editorial2/) How are your images linked to specific pages

I see ithey are trying to link to the old folder, and of course they're no longer there.

Try Publish Off and then ON again for each of your pages, se if it resets the links correctly

sbeckmann / 2012-05-02 16:03:14   

That's the code for every image

pernin / 2012-05-02 16:34:47   

if you have put images and links into the text edit area, then you'll have to edit each of the links manually so that they reflect the new address

sbeckmann / 2012-05-02 17:16:01   









Los Vladimirovich F '12


Ph: Giovanni Cervantes


sbeckmann / 2012-05-02 17:18:33   

yes, but as far as I know the link looks fine

< a href='http://assistingproductions.com/indexhibitv070e/index.php?/ongoing/comlvladf2012/ '

sbeckmann / 2012-05-02 17:20:23   

without the spaces from

sbeckmann / 2012-05-02 17:20:47   

at beggining and end

pernin / 2012-05-02 17:42:30   

well no: you have moved your installation so it's no longer under subfolder indexhibitv070e -- your links should look something like:

a href='http://assistingproductions.com/index.php?/ongoing/comlvladf2012/

or

a href='http://assistingproductions.com/ongoing/comlvladf2012/

if you're using clean urls

if you unhide one of the pages so that you can click on it in the menu you should be able to see how the link looks like

sbeckmann / 2012-05-02 19:04:21   

I've already try that but it doesn't work... I got it out of the indexhibitx070e folder so the url appears neat but now it doesn't read the changes I've made.

Also the files that I upload with the browse and upload button where do they stay save? on which folder?

pernin / 2012-05-02 19:29:20   

you'll have to look for them, under files or files/gimgs -- but I see that you haven't moved everything out of indexhibitv070e folder

all your thumbnails are pointed at the subfolder. why?

sbeckmann / 2012-05-09 14:58:17   

I returned the folder of files cause it didn't work, so I am not sure if all the files have to be inside the assistingproductions folder or insider public_html?

Vaska A / 2012-05-09 15:01:32   

Did you check with your host that they even allow mod_rewrite?
Did you ask your host what the proper htaccess config might be?
Did you search the forum? There are a couple of standard alternates to try...

mod_rewrite is external to Indexhibit and hosts set it up differently - but you will have to find that alternate htaccess edit if it's even allowed at all. Your host will likely know that tiny change that is required (and if not I have to ask what are you paying for?).

sbeckmann / 2012-05-09 18:16:55   

ok, let me check that. I just noticed I have 2 indexhibit070e folders, once inside public html and another one inside assistingproductions and both come with a .htaccess and index.php I haven't moved the once from the folder that is inside public html, should I moved that?

sbeckmann / 2012-05-09 23:26:23   

Hi Vaska

I just asked my host and mod rewrite is allowed and enabled.

So I am not sure what the problem would be, has it got something to do regarding the last question I sent you?

sbeckmann / 2012-05-09 23:57:37   

This is what my host responded, I asked last time and apparently I thought nothing happened if I change the permissions, so what would happen if I change them back? Or what would be your suggestion?

The problem was your file permissions. There were several files and directories that were group and world writable. This is not allowed on our servers for security reasons. The correct permission settings are as follows:

Directories: 755
Perl Scripts: 755
Python Scripts: 755
Ruby, and Rails dispatch files: 755
Fortran Programs: 755
Bash/Sh/Zshell Scripts: 755
Compiled C/C++ CGI Programs: 755
All other files: 644

We utilize the SuExec module with strict policies and, with this environment, every request is executed as your own user rather than a a standard web server user (such as www or nobody). This means only the first of the three permissions are needed. Keep in mind setting the permissions to any other than those listed above are likely to generate a 500 Internal Server Error.

pernin / 2012-05-10 03:10:50   

try 755 permissions in files and gimgs then, if your host says it will work

what I'm wondering, when I look at, for example, http://assistingproductions.com/ongoing/editorial/
what is the exhibition format you're using there?

to me it looks as if you're making tables and putting thumbnails with links into it, not using any exhibition format

This thread has been closed, thank you.