Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   htaccess problem (http://www.mysidiaadoptables.com/forum/showthread.php?t=1264)

Soslowly 01-11-2010 06:21 AM

htaccess problem
 
I uploaded the script and it work fine, but my .htaccess file have a problem.
When i get the alternative bbcode the image are not be shown.

"page not found...."

My host fully support .htaccess.. how can i solve this issue? :(

A thing you have to know: i host multiple domains in my host account, so the script is hosted on "adopt" folder of the account, and the domain pointing redirect the folder to adopt.com (example)


help :(

powerchaos 01-19-2010 06:59 PM

RE: htaccess problem
 
what you mean ??

are you sure your htacces got the right settings

some hosts requere to use option+symlinks in your htacces
or even to write in it

mod_rewrite 1 (not sure of that command ,but it is a example)

before it even want to works

the best i can suggest to provde more help is submitting the htacces :P
and to thell the exact location of the folder

as example

your main is adopt.com
but your folder is located in adopt.com/folder
then the htacces need to rewrite it to that folder and not to the main folder

hopes this can help you a little

Greets From PowerChaos

Soslowly 01-20-2010 06:56 PM

RE: htaccess problem
 
The htaccess is in the folder /pet
And in the pet folder there is the script.

The domain pointer, point the folder to the domain example.com

The htaccess is:

Code:

RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^get/(.*)$ /adoptables200/siggy.php?url=$1 [L]


powerchaos 01-20-2010 07:02 PM

RE: htaccess problem
 
try to put this command at top and see if it works then

but if the script is in the pet folder

then you mean

pet.yourdomain.com as main domain

and the location is then
yourdomain.com/pet

i am not that good with htacces (to be honnest , i know nothing of it )
but i know that sometimes to get it working that you need to use this command in your htaces file
it all depends how your host setted it up (does it allow second level htacces ?? or only first level , second level means /home/www/secondlevel/ )

Code:

Options +FollowSymlinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^get/(.*)$ /adoptables200/siggy.php?url=$1 [L]

try this code , sometimes it works , els it give you a nice error 500 page

Greets From PowerChaos

Soslowly 01-21-2010 05:10 AM

RE: htaccess problem
 
Not work.. the second image dont work.
The image with .gif extension :( uff

powerchaos 01-21-2010 10:05 AM

RE: htaccess problem
 
its kinda easyer for every1 if they got a link to show the result of what you mean (why does no1 post a link :S )

1) it give you visitors :P
2) it helps us to see the mor exact problem
3) sometimes it can safe unneeded questions like in a other topic (some1 putted the file into a dir and forgot to take it out so his files where not working if it need to be in root :P)

if the gif not works
try to reupload them in a zip file
or try to upload it again with ftp in binairy mode or ascii mode (if 1 not works try the other 1 )

and check if you can direct acces the image to see if it is the file or a other problem

Greets From The Crasher

Soslowly 01-21-2010 12:17 PM

RE: htaccess problem
 
The site is: http://adottami.cz.cc/

Try to adopt the dragon, try the second code and see the result. :(

powerchaos 01-21-2010 12:21 PM

RE: htaccess problem
 
well, feel free to click on this image :D

http://www.adottami.cz.cc/get/12.gif

Soslowly 01-21-2010 12:22 PM

RE: htaccess problem
 
do you see the image?
i not see it.

powerchaos 01-21-2010 12:36 PM

RE: htaccess problem
 
i dont see it eather , but i think i found the problem , i am looking a bit more in htacces

the image goes directly to where it is written , but thats not where it need to be

in htacces stands this intresting code

Code:

RewriteRule ^get/(.*)$ /adoptables200/siggy.php?url=$1 [L]
meaning , ^get = everything until you get /get/
(.*)$ is everything after it and change it to $
then $1 means the first rewrite (that $ from before)


this is the output you have from the image
http://adottami.cz.cc/picuploads/gif/12.gif?url=12.gif
and thats not what we need to have , but means that it does rewrite but not right

it ads the url=12.gif behind it and thats not what need to be behind

dit you edited siggy.php by any change ?

i got totaly no clue how the =?12.gif can come behind it , the rewrite rule seems to be fine

ps: http://adottami.cz.cc/picuploads/gif/12.gif does not works eather :s

Greets From The crasher

but i going leave this up to BMR777 to give the solution

but the rewriting is working , exept that last code is wrong (shoulnd add the ?=url)


All times are GMT -5. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.