Htaccess rewrite help pls

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

4 replies · 325 views · started 15 years ago · 1 min read

3 participants
Sifat3d Developer · 66 posts #1

How to do this:

1)example.com/go/hi
2)example.com/go/hi/hello

becomes:

1)example.com/?go=hi
2)example.com/?go=hi/hello
. . .etc

but if there is a file like: example.com/go/hi/anyfile.jpg the file should open/download.pls help me.

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

Mysterio Lead · 630 posts #2

I use Zend Framework for a lot of time, and they have this kind of code

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php

Through this, whatever the url is, it will be processed on main index.php Then you can treat it as you want!

mysterio.al - programming is a functional art

Mysterio Lead · 630 posts #4

Sifat3d wrote: Thanks,but it didnt work. But i solved my problem after a hour of search at google.

I was not trying to solve your problem! I was trying to help you solve your own by understanding it!

mysterio.al - programming is a functional art

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close