# Multiple Rewrite Rules?

**URL:** <https://forum.kirupa.com/t/multiple-rewrite-rules/229667>\
**Category:** programming\
**Created:** [June 19, 2007, 11:51am UTC](https://forum.kirupa.com/t/multiple-rewrite-rules/229667 "2007-06-19T11:51:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duncanhall](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@duncanhall](https://forum.kirupa.com/u/duncanhall)\
**Post date:** [June 19, 2007, 11:51am UTC](https://forum.kirupa.com/t/multiple-rewrite-rules/229667/1 "2007-06-19T11:51:34Z")

</div>

Simple question: If I want to add more rewrite rules to my .htaccess file, can I literally just ammend them to the end of the file?

Eg, my current .htaccess file

```auto

RewriteEngine on
RewriteBase /dev/
RewriteRule ^students/([A-Za-z\_\-\']+)/?$ students.php?student=$1 [QSA]

```

Can I just add a line like this?

```auto

RewriteEngine on
RewriteBase /dev/
RewriteRule ^students/([A-Za-z\_\-\']+)/?$ students.php?student=$1 [QSA]
RewriteRule ^courses/([A-Za-z\_\-\']+)/?$ courses.php?course=$1 [QSA]

```
