|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
i found out a bit about mod_rewrite and use it like this now: RedirectMatch permanent ^/oldfile.php.*$ http://www.domain.tld/category/subcategory/newfile.html Very usefull, but I have another problem, that I can't solve. I have to redirect all possible wrong categories and subcategories to just the allowed one's. That means, this http://www.domain.tld/wrong_category...1/newfile.html or this http://www.domain.tld/wrong_category...2/newfile.html or what ever is given at the first and the second directory(path/folder) always has to be like this http://www.domain.tld/my_category/my_subcategory/ I do not have to care about things after the last '/'. This is solved through the content management system. But if someone enters something wrong within the first two categories the cms crashs. RedirectMatch permanent ^/*/*/$ http://www.domain.tld/my_category/my_subcategory/ That doesn't work. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 2006-10-16, Verona Busch <verona.busch@gmx.de> wrote:
> I have to redirect all possible wrong categories and subcategories to > just the allowed one's. Why don't you process that in the php page? Davide -- We all know Linux is great...it does infinite loops in 5 seconds. -- Linus Torvalds |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Davide Bianchi wrote:
> On 2006-10-16, Verona Busch <verona.busch@gmx.de> wrote: >> I have to redirect all possible wrong categories and subcategories to >> just the allowed one's. > > Why don't you process that in the php page? > > Davide > I don't know how to do it with php either. Anyway. I am actuallyusing the .htaccess redirects for old pages. Isn't it more comfortable? |
|
![]() |
| Outils de la discussion | |
|
|