It is currently Fri May 25, 2012 7:23 pm

News News of Apache mod Rewrite

Site map of Apache mod Rewrite » Forum : Apache mod Rewrite

Discussions about Apache mod Rewrite, .htaccess, Use, experiences ... URL Rewriting.

rewriting single sub forum to new domain

I was wondering it it is possible to redirect one of my sub forums to a new domain name.

Basically, I want to rewrite links to index.php?f=10 to "mynewdomain.com"

I'm running a site and want to give one of the sub topics its own domain name. (I'll provide a custom style for the sub domain too, so it will look like its own site)
Read more : rewriting single sub forum to new domain | Views : 479 | Replies : 0


.ht access RewriteRule Question

Hi there I am looking to create my first Re Write Rule. My news articles where released into Google news, all the articles where stored in a “news” folder. I have now added sub folders “009” and “010”. I now need to delete the sub folders “009” and “010” from appearing in the URL. As Google is directed to the news folder and not sub folders.
Example URL http://www.theboxinghistorian.com/news/ ... irrell.php
What I am looking for is to eliminate the folder 010 from appearing in the URL.


I have tried and below is the ...
Read more : .ht access RewriteRule Question | Views : 630 | Replies : 0


Redirect after upgrade

Hi,


I need to change:

forum/driver-vt654.html ---> forum/driver-t654.html

I need to have a permanent redirect all the URL's with a VT to a T

What do I add to the .htaccess file?


Thanks
Read more : Redirect after upgrade | Views : 552 | Replies : 0


.htaccess Training .htaccess Training

HI dcz :wink:

How rewrite this urls

a)
Code: Select all
http://example.com/dm_video/index.php
то
Code: Select all
http://example.com/video/

b)
Code: Select all
http://example.com/dm_video/viewcat.php?c=1

Code: Select all
http://example.com/dm_video/viewcat.php?c=2

Code: Select all
http://example.com/dm_video/viewcat.php?c=3

Code: Select all
http://example.com/dm_video/viewcat.php?c=4
то
Code: Select all
http://example.com/video/category/1,2,3,4,5 and more

c)
Code: Select all
http://example.com/dm_video/topten.php?mode=rating
to
Code: Select all
http://example.com/video/rating/

and
Code: Select all
http://example.com/dm_video/topten.php?mode=hits
to
Code: Select all
http://example.com/video/views/

d)
Code: Select all
http://example.com/board.php
то
Code: Select all
http://example.com/board/




link my site http://urbanwave.info/

Very thanks :roll:
Read more : .htaccess Training | Views : 655 | Replies : 0


need help with mod_rewrite! need help with mod_rewrite!

I have a site and a message board, and the message board already uses the phpbb premod.
the main site has pages like
example.com/index.php
example.com/something.php
example.com/other_thing.php
example.com/something_else.php
they are all php-s.

the message board is located under /forums/ but the .htaccess is in the root directory.

What I want is to write a few lines in the .htaccess to rewrite the php-s in the root directory (and only in the root directory!) to look like a directory, like example.com/something/ etc...
I don't want it to redirect index.php to example.com/index/ but to simply example.com/
All the other php-s should look like ...
Read more : need help with mod_rewrite! | Views : 679 | Replies : 4


 

Login  •  Register


Statistics

Total posts 41127 • Total topics 8563 • Total members 15417